fix: upgrade playwright-go and fix file:// resource loading

- Upgrade playwright-go v0.5200.1 -> v0.6100.0 (module path changed
  from playwright-community to mxschmitt). The old Azure CDN driver
  download endpoint returns 404 for all versions; v0.6100.0 switches
  to npm registry which works correctly.
- Fix file:// resource loading: replace absolute path src="/..."
  and href="/..." with full URLs so browser can fetch remote
  resources (chapterlog.js) when loading local HTML files.
- Replace removed Devtools field with Args --auto-open-devtools-for-tabs.
- Include error details in playwright install failure log.
- Fix nil pointer in tests: check err before calling SetTextOnly.
- Update all dependencies: goquery, templ, resty, cobra, pflag, etc.
- Bump go toolchain 1.24.2 -> 1.25.0
This commit is contained in:
2026-07-16 19:01:55 +08:00
parent 6c00b1329d
commit 0650bbfdba
5 changed files with 45 additions and 39 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ import (
"os"
"path/filepath"
"github.com/playwright-community/playwright-go"
"github.com/mxschmitt/playwright-go"
"github.com/spf13/cobra"
)
@@ -28,7 +28,7 @@ var downloadCmd = &cobra.Command{
Stdout: io.Discard,
})
if err != nil {
slog.Error("failed to install playwright")
slog.Error("failed to install playwright", slog.Any("error", err))
return
}