cmd/go: modules unable to fetch from commit, only from release #29196
Labels
FrozenDueToAge
modules
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
Outputgo version go1.11.2 darwin/amd64
CACSVML-17695:golang-money rvacek924$ go env
GOARCH="amd64"
GOBIN="/Users/rvacek924/go/bin"
GOCACHE="/Users/rvacek924/Library/Caches/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/rvacek924/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/Cellar/go/1.11.2/libexec"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.11.2/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/rvacek924/go/src/github.com/comcast/golang-money/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/80/hrg50_hj7fs7p7j6tgfbr2xm0000gn/T/go-build363767281=/tmp/go-build -gno-record-gcc-switches -fno-common"
What did you do?
export GO111MODULE=on
go mod init
go mod download
go get github.com/githubsands/webpa-common@feature/webpa_money_decorator
go mod download
tried to build. could not find current dependencies. so checked what vendor would look like.
go mod vendor
vendor only has dependencies with last tag release 2 years ago, not current most commit. A tag has not been used in 2 years.
What did you expect to see?
Expected to fetch all necessary dependencies from and to be able to build my project.
What did you see instead?
I instead was unable to build my project. Latest objects are not found, I checked the vendor folder and saw that its pulling dependencies from the latest release (tag), not the latest commit - even after using go get
The text was updated successfully, but these errors were encountered: