Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible to build on Windows with k6 version 0.51.0 #20

Closed
luminorena opened this issue Sep 23, 2024 · 3 comments
Closed

Impossible to build on Windows with k6 version 0.51.0 #20

luminorena opened this issue Sep 23, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@luminorena
Copy link

luminorena commented Sep 23, 2024

I tried to build xk6-sse extension and got error with all available versions (xk6-sse v0.1.2, v0.1.1, v0.1.0) on Windows 10 (22H2).
It says

This extension is tested with k6 version v0.51.0 last release is v0.1.2.

But it does not work on Windows.

$ k6 version k6.exe v0.51.0 (commit/33d3caa7d1, go1.22.3, windows/amd64)

$ go version go version go1.21.0 windows/amd64

I also tried it with k6 v0.52.0, got no working result.
Different go versions (1.20.0, 1.21.0, 1.22.0, 1.23.1) also got nothing for me.

Console output with error:

$ xk6 build master --with github.com/phymbert/xk6-sse
2024/09/23 16:56:48 [INFO] Temporary folder: C:\Users\olech\AppData\Local\Temp\buildenv_2024-09-23-1656.3693917471
2024/09/23 16:56:48 [INFO] Initializing Go module
2024/09/23 16:56:48 [INFO] exec (timeout=10s): C:\Program Files\Go\bin\go.exe mod init k6
go: creating new go.mod: module k6
2024/09/23 16:56:48 [INFO] Pinning versions
2024/09/23 16:56:48 [INFO] exec (timeout=0s): C:\Program Files\Go\bin\go.exe mod edit -require github.com/phymbert/xk6-sse@latest
2024/09/23 16:56:48 [INFO] exec (timeout=0s): C:\Program Files\Go\bin\go.exe mod tidy -compat=1.17
go: finding module for package github.com/nxadm/tail
go: found github.com/nxadm/tail in github.com/nxadm/tail v1.4.11
2024/09/23 16:56:49 [INFO] exec (timeout=0s): C:\Program Files\Go\bin\go.exe mod tidy -compat=1.17
2024/09/23 16:56:50 [INFO] Writing main module: C:\Users\olech\AppData\Local\Temp\buildenv_2024-09-23-1656.3693917471\main.go
2024/09/23 16:56:50 [INFO] exec (timeout=0s): C:\Program Files\Go\bin\go.exe mod edit -require go.k6.io/k6@master
2024/09/23 16:56:50 [INFO] exec (timeout=0s): C:\Program Files\Go\bin\go.exe mod tidy -compat=1.17
2024/09/23 16:56:52 [INFO] exec (timeout=0s): C:\Program Files\Go\bin\go.exe mod tidy -compat=1.17
2024/09/23 16:56:53 [INFO] Build environment ready
2024/09/23 16:56:53 [INFO] Building k6
2024/09/23 16:56:53 [INFO] exec (timeout=0s): C:\Program Files\Go\bin\go.exe mod tidy -compat=1.17
2024/09/23 16:56:54 [INFO] exec (timeout=0s): C:\Program Files\Go\bin\go.exe build -o C:\Users\olech\Desktop\k6_sse\k6.exe -ldflags=-w -s -trimpath
github.com/phymbert/xk6-sse
........\go\pkg\mod\github.com\phymbert\[email protected]\module.go:37:11: cannot use obj (variable of type *sobek.Object) as *goja.Object value in assignment
........\go\pkg\mod\github.com\phymbert\[email protected]\sse.go:100:45: cannot use rt (variable of type *sobek.Runtime) as *goja.Runtime value in argument to par
seConnectArgs
........\go\pkg\mod\github.com\phymbert\[email protected]\sse.go:107:50: cannot use rt (variable of type *sobek.Runtime) as *goja.Runtime value in argument to mi.
open
........\go\pkg\mod\github.com\phymbert\[email protected]\sse.go:111:31: cannot use rt.ToValue(err) (value of type sobek.Value) as goja.Value value in argument to
client.handleEvent: sobek.Value does not implement goja.Value (wrong type for method Equals)
have Equals(sobek.Value) bool
want Equals(goja.Value) bool
........\go\pkg\mod\github.com\phymbert\[email protected]\sse.go:119:52: cannot use rt.ToValue(&client) (value of type sobek.Value) as goja.Value value in argumen
t to parsedArgs.setupFn: sobek.Value does not implement goja.Value (wrong type for method Equals)
have Equals(sobek.Value) bool
want Equals(goja.Value) bool
........\go\pkg\mod\github.com\phymbert\[email protected]\sse.go:149:32: cannot use rt.ToValue(event) (value of type sobek.Value) as goja.Value value in argument
to client.handleEvent: sobek.Value does not implement goja.Value (wrong type for method Equals)
have Equals(sobek.Value) bool
want Equals(goja.Value) bool
........\go\pkg\mod\github.com\phymbert\[email protected]\sse.go:152:32: cannot use rt.ToValue(readErr) (value of type sobek.Value) as goja.Value value in argumen
t to client.handleEvent: sobek.Value does not implement goja.Value (wrong type for method Equals)
have Equals(sobek.Value) bool
want Equals(goja.Value) bool
........\go\pkg\mod\github.com\phymbert\[email protected]\sse.go:268:18: cannot use c.rt (variable of type *goja.Runtime) as *sobek.Runtime value in argument to c
ommon.Throw
........\go\pkg\mod\github.com\phymbert\[email protected]\sse.go:498:41: cannot use rt (variable of type *goja.Runtime) as *sobek.Runtime value in argument to com
mon.ApplyCustomUserTags
........\go\pkg\mod\github.com\phymbert\[email protected]\sse.go:498:69: cannot use params.Get(k) (value of type goja.Value) as sobek.Value value in argument to c
ommon.ApplyCustomUserTags: goja.Value does not implement sobek.Value (wrong type for method Equals)
have Equals(goja.Value) bool
want Equals(sobek.Value) bool
........\go\pkg\mod\github.com\phymbert\[email protected]\sse.go:498:69: too many errors
2024/09/23 16:56:55 [INFO] Cleaning up temporary folder: C:\Users\olech\AppData\Local\Temp\buildenv_2024-09-23-1656.3693917471

@kokokenada
Copy link

0.54.0 failed to build on Linux (WSL)

fixuid: fixuid should only ever be used on development systems. DO NOT USE IN PRODUCTION
fixuid: runtime UID '1000' already matches container user 'xk6' UID
fixuid: runtime GID '1000' already matches container group 'xk6' GID
2024/10/22 12:17:32 [INFO] Temporary folder: /tmp/buildenv_2024-10-22-1217.242786608
2024/10/22 12:17:32 [INFO] Initializing Go module
2024/10/22 12:17:32 [INFO] exec (timeout=10s): /usr/local/go/bin/go mod init k6 
go: creating new go.mod: module k6
2024/10/22 12:17:32 [INFO] Pinning versions
2024/10/22 12:17:32 [INFO] exec (timeout=0s): /usr/local/go/bin/go mod edit -require github.com/phymbert/[email protected] 
2024/10/22 12:17:32 [INFO] exec (timeout=0s): /usr/local/go/bin/go mod tidy -compat=1.17 
go: downloading github.com/phymbert/xk6-sse v0.1.2
go: downloading go.k6.io/k6 v0.51.0
go: downloading github.com/dop251/goja v0.0.0-20240220182346-e401ed450204
go: downloading github.com/stretchr/testify v1.9.0
go: downloading gopkg.in/guregu/null.v3 v3.5.0
go: downloading github.com/pmezard/go-difflib v1.0.0
go: downloading gopkg.in/yaml.v3 v3.0.1
go: downloading github.com/davecgh/go-spew v1.1.1
go: downloading github.com/dlclark/regexp2 v1.10.0
go: downloading github.com/google/pprof v0.0.0-20231101202521-4ca4178f5c7a
go: downloading golang.org/x/text v0.14.0
go: downloading github.com/go-sourcemap/sourcemap v2.1.4+incompatible
go: downloading github.com/mailru/easyjson v0.7.7
go: downloading github.com/mstoykov/atlas v0.0.0-20220811071828-388f114305dd
go: downloading github.com/serenize/snaker v0.0.0-20201027110005-a7ad2135616e
go: downloading github.com/sirupsen/logrus v1.9.3
go: downloading github.com/tidwall/gjson v1.17.1
go: downloading github.com/andybalholm/brotli v1.1.0
go: downloading github.com/klauspost/compress v1.17.7
go: downloading github.com/mccutchen/go-httpbin v1.1.2-0.20190116014521-c5cb2f4802fa
go: downloading go.opentelemetry.io/otel/trace v1.24.0
go: downloading golang.org/x/time v0.5.0
go: downloading github.com/gorilla/websocket v1.5.1
go: downloading go.opentelemetry.io/otel v1.24.0
go: downloading golang.org/x/net v0.23.0
go: downloading google.golang.org/grpc v1.63.2
go: downloading github.com/spf13/afero v1.10.0
go: downloading github.com/PuerkitoBio/goquery v1.9.1
go: downloading github.com/josharian/intern v1.0.0
go: downloading golang.org/x/crypto v0.21.0
go: downloading github.com/Soontao/goHttpDigestClient v0.0.0-20170320082612-6d28bb1415c5
go: downloading github.com/Azure/go-ntlmssp v0.0.0-20221128193559-754e69321358
go: downloading github.com/nu7hatch/gouuid v0.0.0-20131221200532-179d4d0c4d8d
go: downloading github.com/onsi/ginkgo v1.16.5
go: downloading github.com/onsi/gomega v1.20.2
go: downloading go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.24.0
go: downloading go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.24.0
go: downloading go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.24.0
go: downloading go.opentelemetry.io/otel/sdk v1.24.0
go: downloading github.com/fatih/color v1.16.0
go: downloading github.com/tidwall/match v1.1.1
go: downloading github.com/tidwall/pretty v1.2.1
go: downloading golang.org/x/sys v0.18.0
go: downloading github.com/mstoykov/k6-taskqueue-lib v0.1.0
go: downloading google.golang.org/protobuf v1.33.0
go: downloading github.com/andybalholm/cascadia v1.3.2
go: downloading github.com/go-logr/logr v1.4.1
go: downloading go.opentelemetry.io/otel/metric v1.24.0
go: downloading github.com/go-logr/stdr v1.2.2
go: downloading google.golang.org/genproto/googleapis/rpc v0.0.0-20240227224415-6ceb2ff114de
go: downloading go.opentelemetry.io/proto/otlp v1.1.0
go: downloading github.com/mattn/go-colorable v0.1.13
go: downloading github.com/mattn/go-isatty v0.0.20
go: downloading github.com/cenkalti/backoff/v4 v4.2.1
go: downloading github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.0
go: downloading google.golang.org/genproto/googleapis/api v0.0.0-20240227224415-6ceb2ff114de
go: downloading gopkg.in/yaml.v2 v2.4.0
go: downloading github.com/mstoykov/envconfig v1.5.0
go: downloading github.com/google/go-cmp v0.6.0
go: downloading go.uber.org/goleak v1.3.0
go: downloading google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de
go: finding module for package github.com/nxadm/tail
go: downloading github.com/nxadm/tail v1.4.11
go: found github.com/nxadm/tail in github.com/nxadm/tail v1.4.11
go: downloading github.com/fsnotify/fsnotify v1.6.0
go: downloading gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7
2024/10/22 12:37:54 [INFO] exec (timeout=0s): /usr/local/go/bin/go mod edit -require github.com/grafana/[email protected] 
2024/10/22 12:37:54 [INFO] exec (timeout=0s): /usr/local/go/bin/go mod tidy -compat=1.17 
go: downloading github.com/grafana/xk6-output-influxdb v0.3.0
go: downloading github.com/influxdata/influxdb-client-go/v2 v2.5.1
go: downloading github.com/influxdata/line-protocol v0.0.0-20200327222509-2487e7298839
go: downloading gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c
go: downloading github.com/deepmap/oapi-codegen v1.8.2
go: downloading github.com/pkg/errors v0.9.1
go: downloading github.com/kr/pretty v0.3.1
go: downloading github.com/rogpeppe/go-internal v1.10.0
go: downloading github.com/kr/text v0.2.0
2024/10/22 12:38:05 [INFO] exec (timeout=0s): /usr/local/go/bin/go mod tidy -compat=1.17 
2024/10/22 12:38:05 [INFO] Writing main module: /tmp/buildenv_2024-10-22-1217.242786608/main.go
2024/10/22 12:38:05 [INFO] exec (timeout=0s): /usr/local/go/bin/go mod edit -require go.k6.io/[email protected] 
2024/10/22 12:38:05 [INFO] exec (timeout=0s): /usr/local/go/bin/go mod tidy -compat=1.17 
go: downloading go.k6.io/k6 v0.54.0
go: downloading github.com/grafana/xk6-dashboard v0.7.5
go: downloading github.com/spf13/cobra v1.4.0
go: downloading github.com/grafana/xk6-output-opentelemetry v0.2.0
go: downloading github.com/spf13/pflag v1.0.5
go: downloading github.com/grafana/xk6-output-prometheus-remote v0.4.0
go: downloading golang.org/x/crypto/x509roots/fallback v0.0.0-20240806160748-b2d3a6a4b4d3
go: downloading golang.org/x/term v0.23.0
go: downloading github.com/grafana/sobek v0.0.0-20240829081756-447e8c611945
go: downloading github.com/grafana/xk6-browser v1.8.5
go: downloading github.com/grafana/xk6-redis v0.3.0
go: downloading github.com/grafana/xk6-webcrypto v0.4.0
go: downloading github.com/influxdata/influxdb1-client v0.0.0-20190402204710-8ff2fc3824fc
go: downloading github.com/DataDog/datadog-go v0.0.0-20180330214955-e67964b4021a
go: downloading github.com/grafana/xk6-websockets v0.7.1
go: downloading github.com/evanw/esbuild v0.21.2
go: downloading golang.org/x/crypto v0.26.0
go: downloading github.com/inconshreveable/mousetrap v1.0.0
go: downloading github.com/redis/go-redis/v9 v9.0.5
go: downloading github.com/jhump/protoreflect v1.16.0
go: downloading github.com/golang/protobuf v1.5.4
go: downloading github.com/google/uuid v1.6.0
go: downloading buf.build/gen/go/prometheus/prometheus/protocolbuffers/go v1.31.0-20230627135113-9a12bc2590d2.1
go: downloading github.com/prometheus/client_golang v1.16.0
go: downloading github.com/prometheus/client_model v0.4.0
go: downloading github.com/grpc-ecosystem/go-grpc-middleware v1.4.0
go: downloading go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.28.0
go: downloading go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v1.28.0
go: downloading go.opentelemetry.io/otel/sdk/metric v1.28.0
go: downloading github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8
go: downloading github.com/r3labs/sse/v2 v2.10.0
go: downloading github.com/chromedp/cdproto v0.0.0-20230802225258-3cf4e6d46a89
go: downloading go.opentelemetry.io/otel/sdk v1.29.0
go: downloading go.opentelemetry.io/otel v1.29.0
go: downloading github.com/bufbuild/protocompile v0.10.0
go: downloading github.com/cespare/xxhash/v2 v2.3.0
go: downloading github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f
go: downloading github.com/beorn7/perks v1.0.1
go: downloading github.com/prometheus/common v0.42.0
go: downloading github.com/prometheus/procfs v0.10.1
go: downloading buf.build/gen/go/gogo/protobuf/protocolbuffers/go v1.31.0-20210810001428-4df00b267f94.1
go: downloading gopkg.in/cenkalti/backoff.v1 v1.1.0
go: downloading github.com/chromedp/sysutil v1.0.0
go: downloading golang.org/x/sync v0.8.0
go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.4
go: downloading github.com/rogpeppe/go-internal v1.12.0
go: downloading golang.org/x/sys v0.24.0
go: downloading github.com/dop251/goja v0.0.0-20240610225006-393f6d42497b
go: downloading github.com/fatih/color v1.17.0
go: downloading go.opentelemetry.io/otel/trace v1.29.0
go: downloading golang.org/x/time v0.6.0
go: downloading golang.org/x/text v0.17.0
go: downloading golang.org/x/net v0.28.0
go: downloading go.opentelemetry.io/otel/metric v1.29.0
go: downloading go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.29.0
go: downloading go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.29.0
go: downloading go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.29.0
go: downloading github.com/klauspost/compress v1.17.9
go: downloading google.golang.org/grpc v1.65.0
go: downloading google.golang.org/protobuf v1.34.2
go: downloading github.com/dlclark/regexp2 v1.11.4
go: downloading github.com/Masterminds/semver/v3 v3.2.1
go: downloading github.com/PuerkitoBio/goquery v1.9.2
go: downloading go.opentelemetry.io/proto/otlp v1.3.1
go: downloading google.golang.org/genproto/googleapis/rpc v0.0.0-20240822170219-fc7c04adadcd
go: downloading github.com/go-logr/logr v1.4.2
go: downloading github.com/golang/snappy v0.0.4
go: downloading github.com/cenkalti/backoff/v4 v4.3.0
go: downloading github.com/grpc-ecosystem/grpc-gateway/v2 v2.22.0
go: downloading github.com/bsm/ginkgo/v2 v2.7.0
go: downloading github.com/bsm/gomega v1.26.0
go: downloading google.golang.org/genproto/googleapis/api v0.0.0-20240822170219-fc7c04adadcd
2024/10/22 12:38:23 [INFO] exec (timeout=0s): /usr/local/go/bin/go mod tidy -compat=1.17 
2024/10/22 12:38:23 [INFO] Build environment ready
2024/10/22 12:38:23 [INFO] Building k6
2024/10/22 12:38:23 [INFO] exec (timeout=0s): /usr/local/go/bin/go mod tidy -compat=1.17 
2024/10/22 12:38:23 [INFO] exec (timeout=0s): /usr/local/go/bin/go build -o /xk6/k6 -ldflags=-w -s -trimpath 
# github.com/phymbert/xk6-sse
/go/pkg/mod/github.com/phymbert/[email protected]/module.go:37:11: cannot use obj (variable of type *sobek.Object) as *goja.Object value in assignment
/go/pkg/mod/github.com/phymbert/[email protected]/sse.go:100:45: cannot use rt (variable of type *sobek.Runtime) as *goja.Runtime value in argument to parseConnectArgs
/go/pkg/mod/github.com/phymbert/[email protected]/sse.go:107:50: cannot use rt (variable of type *sobek.Runtime) as *goja.Runtime value in argument to mi.open
/go/pkg/mod/github.com/phymbert/[email protected]/sse.go:111:31: cannot use rt.ToValue(err) (value of type sobek.Value) as goja.Value value in argument to client.handleEvent: sobek.Value does not implement goja.Value (wrong type for method Equals)
                have Equals(sobek.Value) bool
                want Equals(goja.Value) bool
/go/pkg/mod/github.com/phymbert/[email protected]/sse.go:119:52: cannot use rt.ToValue(&client) (value of type sobek.Value) as goja.Value value in argument to parsedArgs.setupFn: sobek.Value does not implement goja.Value (wrong type for method Equals)
                have Equals(sobek.Value) bool
                want Equals(goja.Value) bool
/go/pkg/mod/github.com/phymbert/[email protected]/sse.go:149:32: cannot use rt.ToValue(event) (value of type sobek.Value) as goja.Value value in argument to client.handleEvent: sobek.Value does not implement goja.Value (wrong type for method Equals)
                have Equals(sobek.Value) bool
                want Equals(goja.Value) bool
/go/pkg/mod/github.com/phymbert/[email protected]/sse.go:152:32: cannot use rt.ToValue(readErr) (value of type sobek.Value) as goja.Value value in argument to client.handleEvent: sobek.Value does not implement goja.Value (wrong type for method Equals)
                have Equals(sobek.Value) bool
                want Equals(goja.Value) bool
/go/pkg/mod/github.com/phymbert/[email protected]/sse.go:268:18: cannot use c.rt (variable of type *goja.Runtime) as *sobek.Runtime value in argument to common.Throw
/go/pkg/mod/github.com/phymbert/[email protected]/sse.go:498:41: cannot use rt (variable of type *goja.Runtime) as *sobek.Runtime value in argument to common.ApplyCustomUserTags
/go/pkg/mod/github.com/phymbert/[email protected]/sse.go:498:69: cannot use params.Get(k) (value of type goja.Value) as sobek.Value value in argument to common.ApplyCustomUserTags: goja.Value does not implement sobek.Value (wrong type for method Equals)
                have Equals(goja.Value) bool
                want Equals(sobek.Value) bool
/go/pkg/mod/github.com/phymbert/[email protected]/sse.go:498:69: too many errors
2024/10/22 12:38:51 [INFO] Cleaning up temporary folder: /tmp/buildenv_2024-10-22-1217.242786608
2024/10/22 12:38:51 [FATAL] exit status 1

@hayleyhu
Copy link

hayleyhu commented Nov 1, 2024

Same error on windows 10 with k6 v0.51.0

2024/11/01 15:28:35 [INFO] exec (timeout=0s): C:\Program Files\Go\bin\go.exe mod tidy -compat=1.17
go: downloading github.com/phymbert/xk6-sse v0.1.2
go: downloading go.k6.io/k6 v0.51.0
go: downloading github.com/dop251/goja v0.0.0-20240220182346-e401ed450204
go: downloading github.com/stretchr/testify v1.9.0
go: downloading gopkg.in/guregu/null.v3 v3.5.0
go: downloading github.com/davecgh/go-spew v1.1.1
go: downloading github.com/pmezard/go-difflib v1.0.0
go: downloading gopkg.in/yaml.v3 v3.0.1
go: downloading github.com/dlclark/regexp2 v1.10.0
go: downloading github.com/google/pprof v0.0.0-20231101202521-4ca4178f5c7a
go: downloading golang.org/x/text v0.14.0
go: downloading github.com/go-sourcemap/sourcemap v2.1.4+incompatible
go: downloading golang.org/x/time v0.5.0
go: downloading golang.org/x/net v0.23.0
go: downloading github.com/serenize/snaker v0.0.0-20201027110005-a7ad2135616e
go: downloading google.golang.org/grpc v1.63.2
go: downloading github.com/sirupsen/logrus v1.9.3
go: downloading golang.org/x/crypto v0.21.0
go: downloading github.com/spf13/afero v1.10.0
go: downloading go.opentelemetry.io/otel v1.24.0
go: downloading github.com/mstoykov/k6-taskqueue-lib v0.1.0
go: downloading go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.24.0
go: downloading go.opentelemetry.io/otel/trace v1.24.0
go: downloading github.com/klauspost/compress v1.17.7
go: downloading github.com/mccutchen/go-httpbin v1.1.2-0.20190116014521-c5cb2f4802fa
go: downloading go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.24.0
go: downloading github.com/mailru/easyjson v0.7.7
go: downloading go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.24.0
go: downloading github.com/andybalholm/brotli v1.1.0
go: downloading go.opentelemetry.io/otel/sdk v1.24.0
go: downloading github.com/gorilla/websocket v1.5.1
go: downloading github.com/tidwall/gjson v1.17.1
go: downloading github.com/fatih/color v1.16.0
go: downloading google.golang.org/protobuf v1.33.0
go: downloading github.com/mstoykov/atlas v0.0.0-20220811071828-388f114305dd
go: downloading github.com/onsi/ginkgo v1.16.5
go: downloading github.com/onsi/gomega v1.20.2
go: downloading github.com/PuerkitoBio/goquery v1.9.1
go: downloading github.com/Azure/go-ntlmssp v0.0.0-20221128193559-754e69321358
go: downloading github.com/Soontao/goHttpDigestClient v0.0.0-20170320082612-6d28bb1415c5
go: downloading github.com/nu7hatch/gouuid v0.0.0-20131221200532-179d4d0c4d8d
go: downloading golang.org/x/sys v0.18.0
go: downloading github.com/tidwall/match v1.1.1
go: downloading github.com/tidwall/pretty v1.2.1
go: downloading github.com/mattn/go-colorable v0.1.13
go: downloading github.com/mattn/go-isatty v0.0.20
go: downloading github.com/josharian/intern v1.0.0
go: downloading github.com/andybalholm/cascadia v1.3.2
go: downloading go.opentelemetry.io/proto/otlp v1.1.0
go: downloading github.com/cenkalti/backoff/v4 v4.2.1
go: downloading github.com/go-logr/logr v1.4.1
go: downloading go.opentelemetry.io/otel/metric v1.24.0
go: downloading github.com/go-logr/stdr v1.2.2
go: downloading google.golang.org/genproto/googleapis/rpc v0.0.0-20240227224415-6ceb2ff114de
go: downloading github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.0
go: downloading google.golang.org/genproto/googleapis/api v0.0.0-20240227224415-6ceb2ff114de
go: downloading gopkg.in/yaml.v2 v2.4.0
go: downloading github.com/mstoykov/envconfig v1.5.0
go: downloading github.com/google/go-cmp v0.6.0
go: downloading go.uber.org/goleak v1.3.0
go: downloading google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de
go: finding module for package github.com/nxadm/tail
go: downloading github.com/nxadm/tail v1.4.11
go: found github.com/nxadm/tail in github.com/nxadm/tail v1.4.11
go: downloading gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7
go: downloading github.com/fsnotify/fsnotify v1.6.0
2024/11/01 15:28:42 [INFO] exec (timeout=0s): C:\Program Files\Go\bin\go.exe mod tidy -compat=1.17
2024/11/01 15:28:42 [INFO] Writing main module: C:\Users\hayley\AppData\Local\Temp\buildenv_2024-11-01-1528.2132630497\main.go
2024/11/01 15:28:42 [INFO] exec (timeout=0s): C:\Program Files\Go\bin\go.exe mod edit -require go.k6.io/k6@master
2024/11/01 15:28:42 [INFO] exec (timeout=0s): C:\Program Files\Go\bin\go.exe mod tidy -compat=1.17
go: downloading go.k6.io/k6 v0.54.1-0.20241030161536-c408b44503a4
go: downloading github.com/grafana/sobek v0.0.0-20241024150027-d91f02b05e9b
go: downloading github.com/grafana/xk6-output-prometheus-remote v0.5.0
go: downloading golang.org/x/term v0.25.0
go: downloading gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c
go: downloading github.com/grafana/xk6-dashboard v0.7.5
go: downloading github.com/spf13/pflag v1.0.5
go: downloading github.com/grafana/xk6-redis v0.3.1
go: downloading github.com/spf13/cobra v1.4.0
go: downloading github.com/grafana/xk6-browser v1.9.1
go: downloading github.com/grafana/xk6-webcrypto v0.5.0
go: downloading github.com/grafana/xk6-output-opentelemetry v0.3.0
go: downloading github.com/grafana/xk6-websockets v0.7.2
go: downloading github.com/evanw/esbuild v0.21.2
go: downloading github.com/gorilla/websocket v1.5.3
go: downloading github.com/influxdata/influxdb1-client v0.0.0-20190402204710-8ff2fc3824fc
go: downloading golang.org/x/crypto/x509roots/fallback v0.0.0-20240806160748-b2d3a6a4b4d3
go: downloading github.com/jhump/protoreflect v1.16.0
go: downloading github.com/golang/protobuf v1.5.4
go: downloading github.com/kr/pretty v0.3.1
go: downloading github.com/grpc-ecosystem/go-grpc-middleware v1.4.0
go: downloading github.com/inconshreveable/mousetrap v1.0.0
go: downloading github.com/kr/text v0.2.0
go: downloading github.com/rogpeppe/go-internal v1.10.0
go: downloading golang.org/x/crypto v0.28.0
go: downloading github.com/google/uuid v1.6.0
go: downloading github.com/redis/go-redis/v9 v9.0.5
go: downloading go.opentelemetry.io/otel/sdk/metric v1.28.0
go: downloading go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.28.0
go: downloading go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v1.28.0
go: downloading github.com/prometheus/client_model v0.4.0
go: downloading buf.build/gen/go/prometheus/prometheus/protocolbuffers/go v1.31.0-20230627135113-9a12bc2590d2.1
go: downloading github.com/prometheus/client_golang v1.16.0
go: downloading github.com/bufbuild/protocompile v0.10.0
go: downloading buf.build/gen/go/gogo/protobuf/protocolbuffers/go v1.31.0-20210810001428-4df00b267f94.1
go: downloading github.com/cespare/xxhash/v2 v2.3.0
go: downloading github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f
go: downloading github.com/r3labs/sse/v2 v2.10.0
go: downloading github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8
go: downloading go.opentelemetry.io/otel v1.29.0
go: downloading gopkg.in/cenkalti/backoff.v1 v1.1.0
go: downloading go.opentelemetry.io/otel/sdk v1.29.0
go: downloading github.com/chromedp/cdproto v0.0.0-20240919203636-12af5e8a671f
go: downloading github.com/prometheus/common v0.42.0
go: downloading github.com/prometheus/procfs v0.10.1
go: downloading github.com/beorn7/perks v1.0.1
go: downloading golang.org/x/sync v0.8.0
go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.4
go: downloading github.com/chromedp/sysutil v1.0.0
go: downloading github.com/rogpeppe/go-internal v1.12.0
go: downloading github.com/fatih/color v1.18.0
go: downloading github.com/dop251/goja v0.0.0-20240610225006-393f6d42497b
go: downloading go.opentelemetry.io/otel/metric v1.29.0
go: downloading google.golang.org/grpc v1.67.1
go: downloading github.com/tidwall/gjson v1.18.0
go: downloading golang.org/x/sys v0.26.0
go: downloading github.com/andybalholm/brotli v1.1.1
go: downloading github.com/klauspost/compress v1.17.11
go: downloading go.opentelemetry.io/otel/trace v1.29.0
go: downloading google.golang.org/protobuf v1.35.1
go: downloading golang.org/x/time v0.7.0
go: downloading golang.org/x/net v0.30.0
go: downloading go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.29.0
go: downloading github.com/golang/snappy v0.0.4
go: downloading golang.org/x/text v0.19.0
go: downloading go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.29.0
go: downloading go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.29.0
go: downloading go.opentelemetry.io/proto/otlp v1.3.1
go: downloading google.golang.org/genproto/googleapis/rpc v0.0.0-20240822170219-fc7c04adadcd
go: downloading github.com/go-logr/logr v1.4.2
go: downloading github.com/dlclark/regexp2 v1.11.4
go: downloading github.com/PuerkitoBio/goquery v1.9.2
go: downloading github.com/cenkalti/backoff/v4 v4.3.0
go: downloading github.com/Masterminds/semver/v3 v3.2.1
go: downloading github.com/grpc-ecosystem/grpc-gateway/v2 v2.22.0
go: downloading github.com/xyproto/randomstring v1.0.5
go: downloading github.com/bsm/ginkgo/v2 v2.7.0
go: downloading github.com/bsm/gomega v1.26.0
go: downloading google.golang.org/genproto/googleapis/api v0.0.0-20240822170219-fc7c04adadcd
2024/11/01 15:28:49 [INFO] exec (timeout=0s): C:\Program Files\Go\bin\go.exe mod tidy -compat=1.17
2024/11/01 15:28:49 [INFO] Build environment ready
2024/11/01 15:28:49 [INFO] Building k6
2024/11/01 15:28:49 [INFO] exec (timeout=0s): C:\Program Files\Go\bin\go.exe mod tidy -compat=1.17
2024/11/01 15:28:49 [INFO] exec (timeout=0s): C:\Program Files\Go\bin\go.exe build -o C:\Users\hayley\code\llama.cpp\k6.exe -ldflags=-w -s -trimpath
# github.com/phymbert/xk6-sse
..\..\..\..\go\pkg\mod\github.com\phymbert\[email protected]\module.go:37:11: cannot use obj (variable of type *sobek.Object) as *goja.Object value in assignment
..\..\..\..\go\pkg\mod\github.com\phymbert\[email protected]\sse.go:100:45: cannot use rt (variable of type *sobek.Runtime) as *goja.Runtime value in argument to parseConnectArgs
..\..\..\..\go\pkg\mod\github.com\phymbert\[email protected]\sse.go:107:50: cannot use rt (variable of type *sobek.Runtime) as *goja.Runtime value in argument to mi.open
..\..\..\..\go\pkg\mod\github.com\phymbert\[email protected]\sse.go:111:31: cannot use rt.ToValue(err) (value of type sobek.Value) as goja.Value value in argument to client.handleEvent: sobek.Value does not implement goja.Value (wrong type for method Equals)
                have Equals(sobek.Value) bool
                want Equals(goja.Value) bool
..\..\..\..\go\pkg\mod\github.com\phymbert\[email protected]\sse.go:119:52: cannot use rt.ToValue(&client) (value of type sobek.Value) as goja.Value value in argument to parsedArgs.setupFn: sobek.Value does not implement goja.Value (wrong type for method Equals)
                have Equals(sobek.Value) bool
                want Equals(goja.Value) bool
..\..\..\..\go\pkg\mod\github.com\phymbert\[email protected]\sse.go:149:32: cannot use rt.ToValue(event) (value of type sobek.Value) as goja.Value value in argument to client.handleEvent: sobek.Value does not implement goja.Value (wrong type for method Equals)
                have Equals(sobek.Value) bool
                want Equals(goja.Value) bool
..\..\..\..\go\pkg\mod\github.com\phymbert\[email protected]\sse.go:152:32: cannot use rt.ToValue(readErr) (value of type sobek.Value) as goja.Value value in argument to client.handleEvent: sobek.Value does not implement goja.Value (wrong type for method Equals)
                have Equals(sobek.Value) bool
                want Equals(goja.Value) bool
..\..\..\..\go\pkg\mod\github.com\phymbert\[email protected]\sse.go:268:18: cannot use c.rt (variable of type *goja.Runtime) as *sobek.Runtime value in argument to common.Throw
..\..\..\..\go\pkg\mod\github.com\phymbert\[email protected]\sse.go:498:41: cannot use rt (variable of type *goja.Runtime) as *sobek.Runtime value in argument to common.ApplyCustomUserTags
..\..\..\..\go\pkg\mod\github.com\phymbert\[email protected]\sse.go:498:69: cannot use params.Get(k) (value of type goja.Value) as sobek.Value value in argument to common.ApplyCustomUserTags: goja.Value does not implement sobek.Value (wrong type for method Equals)
                have Equals(goja.Value) bool
                want Equals(sobek.Value) bool
..\..\..\..\go\pkg\mod\github.com\phymbert\[email protected]\sse.go:498:69: too many errors
2024/11/01 15:28:57 [INFO] Cleaning up temporary folder: C:\Users\hayley\AppData\Local\Temp\buildenv_2024-11-01-1528.2132630497
2024/11/01 15:28:57 [FATAL] exit status 1

@phymbert phymbert added the bug Something isn't working label Nov 30, 2024
@phymbert
Copy link
Owner

phymbert commented Nov 30, 2024

Fixed with latest k6 0.55.0 and xk6-sse 0.1.3, tested on W10 with go 1.21.

Feel free to reopen if I missed something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants