You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
go get -u github.com/loadimpact/k6 tries to get both the latest k6 version, but also tries to update all of the dependencies k6 has to their latest version as well, see https://golang.org/pkg/cmd/go/internal/get/
The -u flag instructs get to use the network to update the named packages and their dependencies. By default, get uses the network to check out missing packages but does not use it to look for updates to existing packages.
We have explicitly pinned our dependencies precisely because we're reasonably sure their current versions work, but we can't guarantee that future versions won't have breaking changes, which seems to be the case here. We had a bit of a dependency update spree recently and a discussion about that, see #1933
So, instead, you should do something like this: go get github.com/loadimpact/k6@latest, to get the latest stable version of k6, or go get github.com/loadimpact/k6@master to get the bleeding-edge unreleased features in master. That is, without the -u flag.
Or, if you upgrade to Go 1.16 and above, you could actually use the even better go install github.com/loadimpact/k6@latest or go install github.com/loadimpact/k6@master, see https://golang.org/doc/go1.16#go-command
I'll leave this issue open, since we probably should explain this better in the README
Given that go get is no longer supposed to be used, we now advertise go install in the README and 1.16 is soon to stop being supported, so most users will be using it already - I am closing this issue.
Environment
Expected Behavior
Run
GO111MODULE=on go get -u github.com/loadimpact/k6
to install k6 in golang bin path successActual Behavior
Install failed and get error
Steps to Reproduce the Problem
The text was updated successfully, but these errors were encountered: