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: go clean giving error #27310

Closed
rajender opened this issue Aug 28, 2018 · 3 comments
Closed

cmd/go: go clean giving error #27310

rajender opened this issue Aug 28, 2018 · 3 comments
Labels
FrozenDueToAge modules NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@rajender
Copy link
Contributor

rajender commented Aug 28, 2018

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

Go1.11

Does this issue reproduce with the latest release?

Yes

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

GOARCH="amd64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/root/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="/root/backend/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 -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build265255989=/tmp/go-build -gno-record-gcc-switches"

What did you do?

Ran go clean -modcachce

What did you expect to see?

Just modcache cleaned. no output.

What did you see instead?

I see different output in different invocations and an error.

[root@dev backend]# go clean
can't load package: package backend: unknown import path "backend": cannot find module providing package backend
[root@dev backend]# go clean -modcache
can't load package: package backend: unknown import path "backend": cannot find module providing package backend
[root@dev backend]# go clean -modcache
go: finding github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826
go: finding github.com/360EntSecGroup-Skylar/excelize v1.3.0
go: finding github.com/google/uuid v0.0.0-20180827204232-d460ce9f8df2
go: finding github.com/pborman/uuid v0.0.0-20180827223501-4c1ecd6722e8
go: finding github.com/sergi/go-diff v1.0.0
go: finding github.com/stripe/stripe-go v43.0.0+incompatible
go: finding github.com/jtolds/gls v4.2.1+incompatible
go: finding github.com/pmezard/go-difflib v1.0.0
go: finding github.com/smartystreets/assertions v0.0.0-20180820201707-7c9eb446e3cf
go: finding github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646
go: finding github.com/aws/aws-lambda-go v1.6.0
go: finding github.com/davecgh/go-spew v1.1.1
go: finding github.com/aws/aws-sdk-go v1.15.22
go: finding github.com/gopherjs/gopherjs v0.0.0-20180825215210-0210a2f0f73c
go: finding github.com/stretchr/testify v1.2.2
go: finding github.com/smartystreets/goconvey v0.0.0-20180222194500-ef6db91d284a
go: finding googlemaps.github.io/maps v0.0.0-20180819235337-ce25c900cc16
go: finding golang.org/x/net v0.0.0-20180826012351-8a410e7b638d
go: finding golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2
go: finding golang.org/x/text v0.3.0
go: finding github.com/go-ini/ini v1.25.4
go: finding github.com/jmespath/go-jmespath v0.0.0-20160202185014-0b12d6b521d8
can't load package: package backend: unknown import path "backend": cannot find module providing package backend

@rajender
Copy link
Contributor Author

@gopherbot add label modules

@oiooj oiooj added NeedsFix The path to resolution is known, but the work has not been done. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. and removed NeedsFix The path to resolution is known, but the work has not been done. labels Aug 30, 2018
@FiloSottile FiloSottile added this to the Go1.12 milestone Aug 30, 2018
@oiooj
Copy link
Member

oiooj commented Sep 6, 2018

@rajender Could you print your files in package backend:

ls ./backend/*

I send an incorrect CL and abandoned it.

@bcmills
Copy link
Contributor

bcmills commented Nov 13, 2018

Closing as a duplicate of #28680.

@bcmills bcmills closed this as completed Nov 13, 2018
@golang golang locked and limited conversation to collaborators Nov 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge modules 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

5 participants