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

cmd/go: go1.11beta3 does not automatically resolve revision #26843

Closed
swtch1 opened this issue Aug 7, 2018 · 2 comments

Comments

Projects
None yet
3 participants
@swtch1
Copy link

commented Aug 7, 2018

(go version)

go version go1.11beta3 windows/amd64

(go env)

set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\jxt82ty\AppData\Local\go-build
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:\Users\jxt82ty\go
set GOPROXY=
set GORACE=
set GOROOT=C:\Users\jxt82ty\sdk\go1.11beta3
set GOTMPDIR=
set GOTOOLDIR=C:\Users\jxt82ty\sdk\go1.11beta3\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=C:\tmp\pcf_config_generator\pcfconfgen\go.mod
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\jxt82ty\AppData\Local\Temp\1\go-build932205774=/tmp/go-build -gno-record-gcc-switches

What did you do?

I tried to resolve dependencies with go mod tidy where the required dependency of one of my dependencies was not the current revision.

What did you expect to see?

I expected go mod to automatically find the revision of the dependency that was required as dep does.

What did you see instead?

$ go mod tidy
~~~
go: import "pcf_config_generator/pcfconfgen/prometheus/promcfg" ->
        import "github.com/prometheus/prometheus/discovery/config" ->
        import "github.com/prometheus/prometheus/discovery/azure" ->
        import "github.com/Azure/azure-sdk-for-go/arm/compute": cannot find module providing package github.com/Azure/azure-sdk-for-go/arm/compute

The behavior was corrected by adding the following line to go.mod
require github.com/Azure/azure-sdk-for-go v5.0.0-beta.0.20161028183111-bd73d950fa44+incompatible // indirect

@ianlancetaylor

This comment has been minimized.

Copy link
Contributor

commented Aug 7, 2018

@bcmills

This comment has been minimized.

Copy link
Member

commented Aug 7, 2018

Most likely a dup of #26602.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.