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
The referenced documentation does not explicitly say how to upgrade an existing ginkgo cli install, it just mentions that the cli version should be kept up to date with the package version (in go.mod). So its not explicit enough and can therefore be interpreted various ways.
So does this mean, use:
go get ?
'go install` ?
use both ?
and do you need to specify the version number?
I already have version 2.6.1 of the cli installed, but my package version is 2.7.0, so I'm simply trying to upgrade the cli to 2.7.
❌ When I tried this:
go install github.com/onsi/ginkgo/v2/ginkgo
resulted in:
plastikfan@Janus ~/dev/github/go/snivilised/extendio λ feat/create-resume-spawner ± go install github.com/onsi/ginkgo/v2/ginkgo
../../../../../go/pkg/mod/github.com/onsi/ginkgo/[email protected]/ginkgo/generators/bootstrap_command.go:10:2: missing go.sum entry for module providing package github.com/go-task/slim-sprig (imported by github.com/onsi/ginkgo/v2/ginkgo/generators); to add:
go get github.com/onsi/ginkgo/v2/ginkgo/[email protected]
../../../../../go/pkg/mod/github.com/onsi/ginkgo/[email protected]/ginkgo/internal/profiles_and_reports.go:12:2: missing go.sum entry for module providing package github.com/google/pprof/profile (imported by github.com/onsi/ginkgo/v2/ginkgo/internal); to add:
go get github.com/onsi/ginkgo/v2/ginkgo/[email protected]
../../../../../go/pkg/mod/github.com/onsi/ginkgo/[email protected]/ginkgo/labels/labels_command.go:15:2: missing go.sum entry for module providing package golang.org/x/tools/go/ast/inspector (imported by github.com/onsi/ginkgo/v2/ginkgo/labels); to add:
go get github.com/onsi/ginkgo/v2/ginkgo/[email protected]
Ginkgo detected a version mismatch between the Ginkgo CLI and the version of Ginkgo imported by your packages:
Ginkgo CLI Version:
2.6.1
Mismatched package versions found:
2.7.0 used by collections, nav, utils
Ginkgo will continue to attempt to run but you may see errors (including flag
parsing errors) and should either update your go.mod or your version of the
Ginkgo CLI to match.
To install the matching version of the CLI run
go install github.com/onsi/ginkgo/v2/ginkgo
from a path that contains a go.mod file. Alternatively you can use
go run github.com/onsi/ginkgo/v2/ginkgo
from a path that contains a go.mod file to invoke the matching version of the
Ginkgo CLI.
If you are attempting to test multiple packages that each have a different
version of the Ginkgo library with a single Ginkgo CLI that is currently
unsupported.
did not help:
plastikfan@Janus ~/dev/github/go/snivilised/extendio λ feat/create-resume-spawner ± go install github.com/onsi/ginkgo/v2/ginkgo
../../../../../go/pkg/mod/github.com/onsi/ginkgo/[email protected]/ginkgo/generators/bootstrap_command.go:10:2: missing go.sum entry for module providing package github.com/go-task/slim-sprig (imported by github.com/onsi/ginkgo/v2/ginkgo/generators); to add:
go get github.com/onsi/ginkgo/v2/ginkgo/[email protected]
../../../../../go/pkg/mod/github.com/onsi/ginkgo/[email protected]/ginkgo/internal/profiles_and_reports.go:12:2: missing go.sum entry for module providing package github.com/google/pprof/profile (imported by github.com/onsi/ginkgo/v2/ginkgo/internal); to add:
go get github.com/onsi/ginkgo/v2/ginkgo/[email protected]
../../../../../go/pkg/mod/github.com/onsi/ginkgo/[email protected]/ginkgo/labels/labels_command.go:15:2: missing go.sum entry for module providing package golang.org/x/tools/go/ast/inspector (imported by github.com/onsi/ginkgo/v2/ginkgo/labels); to add:
go get github.com/onsi/ginkgo/v2/ginkgo/[email protected]
Now, I have successfully upgraded the cli in the past, but I have since forgotten how to do this, (my bad, I admit),_ but really it would be nice if this is documented, so that users don't have to guess what to do. The golang docs for upgrading cli packages seems to be lacking in this area (it probably is there somewhere, but the proverbial needle in haystack comes to mind).
Please, in the short term, can you simply give me the correct command to upgrade the cli, thanks.
The text was updated successfully, but these errors were encountered:
Ugh that sucks. Sorry about that - I'll update the docs with much clearer instructions but to unblock you:
go get github.com/onsi/ginkgo/v2/[email protected]
go install github.com/onsi/ginkgo/v2/ginkgo
should do it for you. the first line tells go to fetch all the dependencies for the v2.7.0 cli. the second installs the cli.
if you don't include the version number in the first line go will think you are trying to upgrade to the latest version of ginkgo (which is why picked up v2.8.0)
The referenced documentation does not explicitly say how to upgrade an existing ginkgo cli install, it just mentions that the cli version should be kept up to date with the package version (in go.mod). So its not explicit enough and can therefore be interpreted various ways.
So does this mean, use:
go get
?I already have version 2.6.1 of the cli installed, but my package version is 2.7.0, so I'm simply trying to upgrade the cli to 2.7.
❌ When I tried this:
resulted in:
... which did NOT upate the cli version
Referring to the above output:
I tried that, which again, did NOT update the Cli.
❌ Next I tried:
... resulting in:
which still didnt upate the cli, but just upgraded the package version to 2.8 and left the cli at 2.6.1, and made an aweful mess of my project.
❌ Next I tried:
which did NOT upgrade the Cli.
❌ Finally following the instructions here:
did not help:
so I tried the 3 commands in the output:
still did not upgrade the Cli.
Now, I have successfully upgraded the cli in the past, but I have since forgotten how to do this, (my bad, I admit),_ but really it would be nice if this is documented, so that users don't have to guess what to do. The golang docs for upgrading cli packages seems to be lacking in this area (it probably is there somewhere, but the proverbial needle in haystack comes to mind).
Please, in the short term, can you simply give me the correct command to upgrade the cli, thanks.
The text was updated successfully, but these errors were encountered: