Skip to content
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

module found but does not contain package #511

Open
juliev0 opened this issue Dec 8, 2022 · 5 comments
Open

module found but does not contain package #511

juliev0 opened this issue Dec 8, 2022 · 5 comments

Comments

@juliev0
Copy link

juliev0 commented Dec 8, 2022

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/godog@v0.12.4 or
go install github.com/cucumber/godog/cmd/godog@v0.12.3
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.)

@roskee
Copy link
Member

roskee commented Dec 8, 2022

What is your go version?

@juliev0
Copy link
Author

juliev0 commented Dec 8, 2022

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).

@roskee
Copy link
Member

roskee commented Dec 8, 2022

huh! go 1.19 works fine. Could you maybe print go env if there are any problems there

@juliev0
Copy link
Author

juliev0 commented Dec 8, 2022

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/godog@v0.12.5
go: github.com/cucumber/godog/cmd/godog@v0.12.5: module github.com/cucumber/godog@v0.12.5 found, but does not contain package github.com/cucumber/godog/cmd/godog

@roskee
Copy link
Member

roskee commented Dec 8, 2022

I don't see any unusual value. maybe try to manually clean modcache by removing everything inside Users/jvogelman/GOPATH/pkg/mod

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

No branches or pull requests

2 participants