Code Monkey home page Code Monkey logo

Comments (3)

AntonParaskiv avatar AntonParaskiv commented on August 17, 2024

it doesn't build with k6 version >= v0.33.0 even with only one xk6-mock

Command: xk6 build v0.33.0 --with github.com/szkiba/xk6-mock

2022/10/04 19:12:48 [INFO] Temporary folder: /Users/antonparaskiv/GolandProjects/shipment-ext/buildenv_2022-10-04-1912.4138967645
2022/10/04 19:12:48 [INFO] Initializing Go module
2022/10/04 19:12:48 [INFO] exec (timeout=10s): /Users/antonparaskiv/sdk/go1.17.13/bin/go mod init k6 
go: creating new go.mod: module k6
2022/10/04 19:12:48 [INFO] Pinning versions
2022/10/04 19:12:48 [INFO] exec (timeout=0s): /Users/antonparaskiv/sdk/go1.17.13/bin/go mod edit -require github.com/szkiba/xk6-mock@latest 
2022/10/04 19:12:48 [INFO] exec (timeout=0s): /Users/antonparaskiv/sdk/go1.17.13/bin/go mod tidy -compat=1.17 
2022/10/04 19:12:48 [INFO] exec (timeout=0s): /Users/antonparaskiv/sdk/go1.17.13/bin/go mod tidy -compat=1.17 
2022/10/04 19:12:48 [INFO] Writing main module: /Users/antonparaskiv/GolandProjects/shipment-ext/buildenv_2022-10-04-1912.4138967645/main.go
2022/10/04 19:12:48 [INFO] exec (timeout=0s): /Users/antonparaskiv/sdk/go1.17.13/bin/go mod edit -require go.k6.io/[email protected] 
2022/10/04 19:12:48 [INFO] exec (timeout=0s): /Users/antonparaskiv/sdk/go1.17.13/bin/go mod tidy -compat=1.17 
2022/10/04 19:12:48 [INFO] exec (timeout=0s): /Users/antonparaskiv/sdk/go1.17.13/bin/go mod tidy -compat=1.17 
2022/10/04 19:12:49 [INFO] Build environment ready
2022/10/04 19:12:49 [INFO] Building k6
2022/10/04 19:12:49 [INFO] exec (timeout=0s): /Users/antonparaskiv/sdk/go1.17.13/bin/go mod tidy -compat=1.17 
2022/10/04 19:12:49 [INFO] exec (timeout=0s): /Users/antonparaskiv/sdk/go1.17.13/bin/go build -o /Users/antonparaskiv/GolandProjects/shipment-ext/k6 -ldflags -w -s -trimpath 
# github.com/szkiba/xk6-mock
../../../go/pkg/mod/github.com/szkiba/[email protected]/http.go:36:15: undefined: "go.k6.io/k6/js/modules/k6/http".ToURL
../../../go/pkg/mod/github.com/szkiba/[email protected]/http.go:41:10: cannot assign error to err in multiple assignment
../../../go/pkg/mod/github.com/szkiba/[email protected]/http.go:51:12: cannot assign httpext.URL to orig in multiple assignment
../../../go/pkg/mod/github.com/szkiba/[email protected]/http.go:51:12: cannot assign error to err in multiple assignment
2022/10/04 19:12:49 [INFO] Cleaning up temporary folder: /Users/antonparaskiv/GolandProjects/shipment-ext/buildenv_2022-10-04-1912.4138967645
2022/10/04 19:12:49 [FATAL] exit status 2

but it's ok for k6 version v0.32.0
xk6 build v0.32.0 --with github.com/szkiba/xk6-mock

other extensions may require newer version of k6

from xk6-mock.

szkiba avatar szkiba commented on August 17, 2024

Thank you for feedback. It's fixed now, version v0.2.0
(the minimum k6 version is v0.43.0)

from xk6-mock.

szkiba avatar szkiba commented on August 17, 2024

fixed in v0.2.0

from xk6-mock.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.