Skip to content

Incompatible with version k6 0.53.0 and above #19

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

Closed
unlikelyzero opened this issue Aug 21, 2024 · 0 comments · Fixed by #22
Closed

Incompatible with version k6 0.53.0 and above #19

unlikelyzero opened this issue Aug 21, 2024 · 0 comments · Fixed by #22

Comments

@unlikelyzero
Copy link

unlikelyzero commented Aug 21, 2024

https://github.com/grafana/k6/releases/tag/v0.53.0 released and I cannot build with it. 0.52.0 works

xk6 build v0.53.0 --with github.com/phymbert/xk6-sse
2024/08/21 09:49:14 [INFO] Temporary folder: /path/to/temp/folder
2024/08/21 09:49:14 [INFO] Writing main module: /path/to/temp/folder/main.go
2024/08/21 09:49:14 [INFO] Initializing Go module
2024/08/21 09:49:14 [INFO] exec (timeout=10s): /usr/local/bin/go mod init k6 
go: creating new go.mod: module k6
go: to add module requirements and sums:
        go mod tidy
2024/08/21 09:49:14 [INFO] Pinning versions
2024/08/21 09:49:14 [INFO] exec (timeout=0s): /usr/local/bin/go mod edit -require go.k6.io/[email protected] 
2024/08/21 09:49:15 [INFO] exec (timeout=0s): /usr/local/bin/go mod tidy 
go: downloading go.k6.io/k6 v0.53.0
go: downloading github.com/grafana/sobek v0.0.0-20240808084414-f7ac208544fe
go: finding module for package github.com/phymbert/xk6-sse
go: found github.com/phymbert/xk6-sse in github.com/phymbert/xk6-sse v0.1.2
2024/08/21 09:49:17 [INFO] exec (timeout=0s): /usr/local/bin/go mod edit -require github.com/phymbert/xk6-sse@latest 
2024/08/21 09:49:17 [INFO] exec (timeout=0s): /usr/local/bin/go mod tidy 
2024/08/21 09:49:17 [INFO] Build environment ready
2024/08/21 09:49:17 [INFO] Building k6
2024/08/21 09:49:17 [INFO] exec (timeout=0s): /usr/local/bin/go mod tidy 
2024/08/21 09:49:17 [INFO] exec (timeout=0s): /usr/local/bin/go build -o /path/to/output/k6 -ldflags -w -s -trimpath 
# github.com/phymbert/xk6-sse
/path/to/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
/path/to/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
/path/to/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
/path/to/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
/path/to/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
/path/to/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
/path/to/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
/path/to/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
/path/to/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
/path/to/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
/path/to/go/pkg/mod/github.com/phymbert/[email protected]/sse.go:498:69: too many errors
2024/08/21 09:49:31 [INFO] Cleaning up temporary folder: /path/to/temp/folder
2024/08/21 09:49:31 [FATAL] exit status 1
@unlikelyzero unlikelyzero changed the title Incompatible with version 0.53.0 and above Incompatible with version k6 0.53.0 and above Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant