Skip to content

Commit 246fb9c

Browse files
screenshotter: update chromedp (#13066)
the current version doesn't compile when building the container: <details> ``` Cleaning up Docker setup Network mixin-serve not found or has active endpoints Cleaned up Docker setup Building Docker image mixin-screenshots-taker [+] Building 9.7s (14/15) docker:orbstack => [internal] load build definition from Dockerfile 0.1s => => transferring dockerfile: 826B 0.0s => [internal] load metadata for docker.io/grafana/mimir-build-image:latest 0.0s => [internal] load metadata for docker.io/library/debian:bullseye-slim 1.7s => [auth] library/debian:pull token for registry-1.docker.io 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [builder 1/6] FROM docker.io/grafana/mimir-build-image:latest 0.2s => [stage-1 1/3] FROM docker.io/library/debian:bullseye-slim@sha256:f807f4b16002c623115b0247dca6a55 2.2s => => resolve docker.io/library/debian:bullseye-slim@sha256:f807f4b16002c623115b0247dca6a55711c6b1a 0.0s => => sha256:f807f4b16002c623115b0247dca6a55711c6b1ae821dc64fb8a2339e4ce2115d 4.54kB / 4.54kB 0.0s => => sha256:6c42e2202aeb01cbc556b99ee55169746a7dbe677f9c6baf231f6039c623c298 1.04kB / 1.04kB 0.0s => => sha256:6b31cd98ab39dad101aae699a0d3856094f48233bbaa571451ad2eb178e1878f 468B / 468B 0.0s => => sha256:93b0b88e50eb7468103e583a7be2e8ee3fe5f86e6c74df4baca40a3685b5eee1 28.75MB / 28.75MB 1.3s => => extracting sha256:93b0b88e50eb7468103e583a7be2e8ee3fe5f86e6c74df4baca40a3685b5eee1 0.8s => [internal] load build context 0.1s => => transferring context: 12.21kB 0.0s => [builder 2/6] WORKDIR /app 0.0s => [builder 3/6] COPY go.mod go.sum ./ 0.0s => [builder 4/6] RUN go mod download 2.5s => CANCELED [stage-1 2/3] RUN apt-get update && apt-get install -y chromium libnss3 lib 5.6s => [builder 5/6] COPY main.go ./ 0.0s => ERROR [builder 6/6] RUN CGO_ENABLED=0 go build -o mimir-mixin-screenshots main.go 4.9s ------ > [builder 6/6] RUN CGO_ENABLED=0 go build -o mimir-mixin-screenshots main.go: 4.622 # github.com/chromedp/chromedp 4.622 /go/pkg/mod/github.com/chromedp/chromedp@v0.10.0/chromedp.go:192:44: cannot use c.Browser (variable of type *Browser) as cdp.Executor value in argument to cdp.WithExecutor: *Browser does not implement cdp.Executor (wrong type for method Execute) 4.622 have Execute(context.Context, string, easyjson.Marshaler, easyjson.Unmarshaler) error 4.622 want Execute(context.Context, string, any, any) error 4.622 /go/pkg/mod/github.com/chromedp/chromedp@v0.10.0/chromedp.go:335:49: cannot use c.Target (variable of type *Target) as cdp.Executor value in argument to cdp.WithExecutor: *Target does not implement cdp.Executor (wrong type for method Execute) 4.622 have Execute(context.Context, string, easyjson.Marshaler, easyjson.Unmarshaler) error 4.622 want Execute(context.Context, string, any, any) error 4.622 /go/pkg/mod/github.com/chromedp/chromedp@v0.10.0/chromedp.go:350:62: cannot use c.Target (variable of type *Target) as cdp.Executor value in argument to cdp.WithExecutor: *Target does not implement cdp.Executor (wrong type for method Execute) 4.622 have Execute(context.Context, string, easyjson.Marshaler, easyjson.Unmarshaler) error 4.622 want Execute(context.Context, string, any, any) error 4.622 /go/pkg/mod/github.com/chromedp/chromedp@v0.10.0/chromedp.go:366:44: cannot use c.Browser (variable of type *Browser) as cdp.Executor value in argument to cdp.WithExecutor: *Browser does not implement cdp.Executor (wrong type for method Execute) 4.622 have Execute(context.Context, string, easyjson.Marshaler, easyjson.Unmarshaler) error 4.622 want Execute(context.Context, string, any, any) error 4.622 /go/pkg/mod/github.com/chromedp/chromedp@v0.10.0/chromedp.go:414:44: cannot use c.Browser (variable of type *Browser) as cdp.Executor value in argument to cdp.WithExecutor: *Browser does not implement cdp.Executor (wrong type for method Execute) 4.622 have Execute(context.Context, string, easyjson.Marshaler, easyjson.Unmarshaler) error 4.622 want Execute(context.Context, string, any, any) error 4.622 /go/pkg/mod/github.com/chromedp/chromedp@v0.10.0/chromedp.go:426:95: cannot use c.Browser (variable of type *Browser) as cdp.Executor value in argument to cdp.WithExecutor: *Browser does not implement cdp.Executor (wrong type for method Execute) 4.622 have Execute(context.Context, string, easyjson.Marshaler, easyjson.Unmarshaler) error 4.622 want Execute(context.Context, string, any, any) error 4.622 /go/pkg/mod/github.com/chromedp/chromedp@v0.10.0/chromedp.go:442:54: cannot use c.Target (variable of type *Target) as cdp.Executor value in argument to cdp.WithExecutor: *Target does not implement cdp.Executor (wrong type for method Execute) 4.622 have Execute(context.Context, string, easyjson.Marshaler, easyjson.Unmarshaler) error 4.622 want Execute(context.Context, string, any, any) error 4.622 /go/pkg/mod/github.com/chromedp/chromedp@v0.10.0/chromedp.go:445:67: cannot use c.Target (variable of type *Target) as cdp.Executor value in argument to cdp.WithExecutor: *Target does not implement cdp.Executor (wrong type for method Execute) 4.622 have Execute(context.Context, string, easyjson.Marshaler, easyjson.Unmarshaler) error 4.622 want Execute(context.Context, string, any, any) error 4.622 /go/pkg/mod/github.com/chromedp/chromedp@v0.10.0/chromedp.go:470:45: cannot use c.Target (variable of type *Target) as cdp.Executor value in argument to cdp.WithExecutor: *Target does not implement cdp.Executor (wrong type for method Execute) 4.622 have Execute(context.Context, string, easyjson.Marshaler, easyjson.Unmarshaler) error 4.622 want Execute(context.Context, string, any, any) error 4.622 /go/pkg/mod/github.com/chromedp/chromedp@v0.10.0/chromedp.go:705:54: cannot use c.Browser (variable of type *Browser) as cdp.Executor value in argument to cdp.WithExecutor: *Browser does not implement cdp.Executor (wrong type for method Execute) 4.622 have Execute(context.Context, string, easyjson.Marshaler, easyjson.Unmarshaler) error 4.622 want Execute(context.Context, string, any, any) error 4.622 /go/pkg/mod/github.com/chromedp/chromedp@v0.10.0/chromedp.go:705:54: too many errors ------ Dockerfile:8 -------------------- 6 | RUN go mod download 7 | COPY main.go ./ 8 | >>> RUN CGO_ENABLED=0 go build -o mimir-mixin-screenshots main.go 9 | 10 | FROM debian:bullseye-slim -------------------- ERROR: failed to build: failed to solve: process "/bin/sh -c CGO_ENABLED=0 go build -o mimir-mixin-screenshots main.go" did not complete successfully: exit code: 1 Cleaning up Docker setup Network mixin-serve not found or has active endpoints Cleaned up Docker setup make: *** [mixin-screenshots] Error 1 ``` </details> Signed-off-by: Dimitar Dimitrov <dimitar.dimitrov@grafana.com>
1 parent 2251e9a commit 246fb9c

File tree

2 files changed

+15
-22
lines changed

2 files changed

+15
-22
lines changed
Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
module screenshots-go
22

3-
go 1.23
3+
go 1.25
44

55
require (
66
github.com/chromedp/cdproto v0.0.0-20250803210736-d308e07a266d
7-
github.com/chromedp/chromedp v0.10.0
7+
github.com/chromedp/chromedp v0.14.2
88
github.com/go-kit/log v0.2.1
99
)
1010

1111
require (
1212
github.com/chromedp/sysutil v1.1.0 // indirect
13-
github.com/go-json-experiment/json v0.0.0-20250211171154-1ae217ad3535 // indirect
14-
github.com/go-logfmt/logfmt v0.5.1 // indirect
13+
github.com/go-json-experiment/json v0.0.0-20250910080747-cc2cfa0554c3 // indirect
14+
github.com/go-logfmt/logfmt v0.6.1 // indirect
1515
github.com/gobwas/httphead v0.1.0 // indirect
1616
github.com/gobwas/pool v0.2.1 // indirect
1717
github.com/gobwas/ws v1.4.0 // indirect
18-
github.com/josharian/intern v1.0.0 // indirect
19-
github.com/mailru/easyjson v0.9.0 // indirect
20-
golang.org/x/sys v0.22.0 // indirect
18+
golang.org/x/sys v0.37.0 // indirect
2119
)
Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,27 @@
1-
github.com/chromedp/cdproto v0.0.0-20240801214329-3f85d328b335/go.mod h1:GKljq0VrfU4D5yc+2qA6OVr8pmO/MBbPEWqWQ/oqGEs=
21
github.com/chromedp/cdproto v0.0.0-20250803210736-d308e07a266d h1:ZtA1sedVbEW7EW80Iz2GR3Ye6PwbJAJXjv7D74xG6HU=
32
github.com/chromedp/cdproto v0.0.0-20250803210736-d308e07a266d/go.mod h1:NItd7aLkcfOA/dcMXvl8p1u+lQqioRMq/SqDp71Pb/k=
4-
github.com/chromedp/chromedp v0.10.0 h1:bRclRYVpMm/UVD76+1HcRW9eV3l58rFfy7AdBvKab1E=
5-
github.com/chromedp/chromedp v0.10.0/go.mod h1:ei/1ncZIqXX1YnAYDkxhD4gzBgavMEUu7JCKvztdomE=
6-
github.com/chromedp/sysutil v1.0.0/go.mod h1:kgWmDdq8fTzXYcKIBqIYvRRTnYb9aNS9moAV0xufSww=
3+
github.com/chromedp/chromedp v0.14.2 h1:r3b/WtwM50RsBZHMUm9fsNhhzRStTHrKdr2zmwbZSzM=
4+
github.com/chromedp/chromedp v0.14.2/go.mod h1:rHzAv60xDE7VNy/MYtTUrYreSc0ujt2O1/C3bzctYBo=
75
github.com/chromedp/sysutil v1.1.0 h1:PUFNv5EcprjqXZD9nJb9b/c9ibAbxiYo4exNWZyipwM=
86
github.com/chromedp/sysutil v1.1.0/go.mod h1:WiThHUdltqCNKGc4gaU50XgYjwjYIhKWoHGPTUfWTJ8=
9-
github.com/go-json-experiment/json v0.0.0-20250211171154-1ae217ad3535 h1:yE7argOs92u+sSCRgqqe6eF+cDaVhSPlioy1UkA0p/w=
10-
github.com/go-json-experiment/json v0.0.0-20250211171154-1ae217ad3535/go.mod h1:BWmvoE1Xia34f3l/ibJweyhrT+aROb/FQ6d+37F0e2s=
7+
github.com/go-json-experiment/json v0.0.0-20250910080747-cc2cfa0554c3 h1:02WINGfSX5w0Mn+F28UyRoSt9uvMhKguwWMlOAh6U/0=
8+
github.com/go-json-experiment/json v0.0.0-20250910080747-cc2cfa0554c3/go.mod h1:uNVvRXArCGbZ508SxYYTC5v1JWoz2voff5pm25jU1Ok=
119
github.com/go-kit/log v0.2.1 h1:MRVx0/zhvdseW+Gza6N9rVzU/IVzaeE1SFI4raAhmBU=
1210
github.com/go-kit/log v0.2.1/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0=
13-
github.com/go-logfmt/logfmt v0.5.1 h1:otpy5pqBCBZ1ng9RQ0dPu4PN7ba75Y/aA+UpowDyNVA=
14-
github.com/go-logfmt/logfmt v0.5.1/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs=
11+
github.com/go-logfmt/logfmt v0.6.1 h1:4hvbpePJKnIzH1B+8OR/JPbTx37NktoI9LE2QZBBkvE=
12+
github.com/go-logfmt/logfmt v0.6.1/go.mod h1:EV2pOAQoZaT1ZXZbqDl5hrymndi4SY9ED9/z6CO0XAk=
1513
github.com/gobwas/httphead v0.1.0 h1:exrUm0f4YX0L7EBwZHuCF4GDp8aJfVeBrlLQrs6NqWU=
1614
github.com/gobwas/httphead v0.1.0/go.mod h1:O/RXo79gxV8G+RqlR/otEwx4Q36zl9rqC5u12GKvMCM=
1715
github.com/gobwas/pool v0.2.1 h1:xfeeEhW7pwmX8nuLVlqbzVc7udMDrwetjEv+TZIz1og=
1816
github.com/gobwas/pool v0.2.1/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw=
1917
github.com/gobwas/ws v1.4.0 h1:CTaoG1tojrh4ucGPcoJFiAQUAsEWekEWvLy7GsVNqGs=
2018
github.com/gobwas/ws v1.4.0/go.mod h1:G3gNqMNtPppf5XUz7O4shetPpcZ1VJ7zt18dlUeakrc=
21-
github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY=
22-
github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y=
19+
github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
20+
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
2321
github.com/ledongthuc/pdf v0.0.0-20220302134840-0c2507a12d80 h1:6Yzfa6GP0rIo/kULo2bwGEkFvCePZ3qHDDTC3/J9Swo=
2422
github.com/ledongthuc/pdf v0.0.0-20220302134840-0c2507a12d80/go.mod h1:imJHygn/1yfhB7XSJJKlFZKl/J+dCPAknuiaGOshXAs=
25-
github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc=
26-
github.com/mailru/easyjson v0.9.0 h1:PrnmzHw7262yW8sTBwxi1PdJA3Iw/EKBa8psRf7d9a4=
27-
github.com/mailru/easyjson v0.9.0/go.mod h1:1+xMtQp2MRNVL/V1bOzuP3aP8VNwRW55fQUto+XFtTU=
2823
github.com/orisano/pixelmatch v0.0.0-20220722002657-fb0b55479cde h1:x0TT0RDC7UhAVbbWWBzr41ElhJx5tXPWkIHA2HWPRuw=
2924
github.com/orisano/pixelmatch v0.0.0-20220722002657-fb0b55479cde/go.mod h1:nZgzbfBr3hhjoZnS66nKrHmduYNpc34ny7RK4z5/HM0=
3025
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
31-
golang.org/x/sys v0.22.0 h1:RI27ohtqKCnwULzJLqkv897zojh5/DwS/ENaMzUOaWI=
32-
golang.org/x/sys v0.22.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
26+
golang.org/x/sys v0.37.0 h1:fdNQudmxPjkdUTPnLn5mdQv7Zwvbvpaxqs831goi9kQ=
27+
golang.org/x/sys v0.37.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=

0 commit comments

Comments
 (0)