Skip to content

x/exp/sumdb: package rename causes go get to fail #31865

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

Closed
shakeel opened this issue May 6, 2019 · 4 comments
Closed

x/exp/sumdb: package rename causes go get to fail #31865

shakeel opened this issue May 6, 2019 · 4 comments
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@shakeel
Copy link

shakeel commented May 6, 2019

What version of Go are you using (go version)?

go version go1.12.3 linux/amd64

Does this issue reproduce with the latest release?

I have not tried to reproduce it with 1.12.4 or ToT of the master branch.

What operating system and processor architecture are you using (go env)?

go env Output
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/shakeel/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/shakeel/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
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 -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build134252151=/tmp/go-build -gno-record-gcc-switches"

What did you do?

Sometime ago, I had done a go get on exp packages
go get -u golang.org/x/exp/...

I did a go get -u after the the following CL https://go.googlesource.com/exp/+/7da06db65df0ed3340347289c3f44e04ca68231f mov notary to sumdb

What did you expect to see?

go get -u reports no failures

What did you see instead?

package golang.org/x/exp/notary/internal/note: cannot find package "golang.org/x/exp/notary/internal/note" in any of:
	/usr/local/go/src/golang.org/x/exp/notary/internal/note (from $GOROOT)
	/home/shakeel/go/src/golang.org/x/exp/notary/internal/note (from $GOPATH)
package golang.org/x/exp/notary/internal/notecheck: cannot find package "golang.org/x/exp/notary/internal/notecheck" in any of:
	/usr/local/go/src/golang.org/x/exp/notary/internal/notecheck (from $GOROOT)
	/home/shakeel/go/src/golang.org/x/exp/notary/internal/notecheck (from $GOPATH)
package golang.org/x/exp/notary/internal/tlog: cannot find package "golang.org/x/exp/notary/internal/tlog" in any of:
	/usr/local/go/src/golang.org/x/exp/notary/internal/tlog (from $GOROOT)
	/home/shakeel/go/src/golang.org/x/exp/notary/internal/tlog (from $GOPATH)

However a second go get -u works as expected and reports no failures.

This could be due to work in progress or it might be an edge case of failure when packages are moved.

@dmitshur dmitshur added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label May 6, 2019
@dmitshur
Copy link
Contributor

dmitshur commented May 6, 2019

go get -u failing in GOPATH mode on first time, but succeeding on second time has come up before (e.g., issue #9224) and was resolved.

Sometime ago, I had done a go get on exp packages [...]

If you can provide a way to reproduce this failure, then this issue can be more actionable. That'll help us know if this is a rare edge case that few people will run into, or something more widespread.

@dmitshur dmitshur added WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. and removed NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. labels May 6, 2019
@dmitshur dmitshur added this to the Go1.14 milestone May 6, 2019
@shakeel
Copy link
Author

shakeel commented May 6, 2019

This CL documents the changes made to rename notary to sumdb. https://go.googlesource.com/exp/+/7da06db65df0ed3340347289c3f44e04ca68231f%5E%21/

Here are the steps to reproduce
Setup go package with this tree https://go.googlesource.com/exp/+/2cc83dd57ac10eaf754bf2f90254364862360727
Then do go get -u on it
Update the package with this tree
https://go.googlesource.com/exp/+/7da06db65df0ed3340347289c3f44e04ca68231f/
Then do go get -u on it.
You should be able to see the error.

@dmitshur dmitshur added NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. and removed WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. labels May 6, 2019
@shakeel
Copy link
Author

shakeel commented May 6, 2019

@dmitshur dmitshur changed the title exp/sumdb: package rename causes go get to fail x/exp/sumdb: package rename causes go get to fail Jul 19, 2019
@rsc rsc modified the milestones: Go1.14, Backlog Oct 9, 2019
@seankhliao
Copy link
Member

I don't think there's anything to do here (GOPATH get was removed).

@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

4 participants