godog
godog copied to clipboard
module found but does not contain package
I'm following the instructions on the README. However, when I try to do:
go install github.com/cucumber/godog/cmd/godog@latest
I get:
go: github.com/cucumber/godog/cmd/godog@latest: module github.com/cucumber/godog@latest found (v0.12.5), but does not contain package github.com/cucumber/godog/cmd/godog
Note that I did have v0.12.4 installed before.
Anyway, I get no errors if I do:
go install github.com/cucumber/godog/cmd/[email protected]
or
go install github.com/cucumber/godog/cmd/[email protected]
but I do if I try to reference either latest
or v0.12.5
I had also tried running go clean -modcache
based on finding that suggestion online for this error in general, but that did not help.
(Note, I am outside of my $GOPATH.)
What is your go version?
Funny enough, I was just going to try using a previous version. The version I'm running is 1.19.
If I go back to 1.18 it seems to install successfully (but then I think I'm facing other issues with that version).
huh! go 1.19 works fine. Could you maybe print go env
if there are any problems there
Sure. By the way, I am on the new Mac M1 (arm64) but not sure if that matters.
% go env
GO111MODULE=""
GOARCH="arm64"
GOBIN=""
GOCACHE="/Users/jvogelman/Library/Caches/go-build"
GOENV="/Users/jvogelman/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="arm64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/jvogelman/GOPATH/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/jvogelman/GOPATH"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_arm64"
GOVCS=""
GOVERSION="go1.19.1"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/jvogelman/GOPATH/src/github.com/keikoproj/kubedog/go.mod"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/3_/nkw952qn66qfwq3kc7mc1jnr0000gq/T/go-build149220179=/tmp/go-build -gno-record-gcc-switches -fno-common"
% go install github.com/cucumber/godog/cmd/[email protected]
go: github.com/cucumber/godog/cmd/[email protected]: module github.com/cucumber/[email protected] found, but does not contain package github.com/cucumber/godog/cmd/godog
I don't see any unusual value. maybe try to manually clean modcache by removing everything inside Users/jvogelman/GOPATH/pkg/mod