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: build error not helpful #3064

Closed
bradfitz opened this issue Feb 18, 2012 · 2 comments
Closed

cmd/go: build error not helpful #3064

bradfitz opened this issue Feb 18, 2012 · 2 comments
Milestone

Comments

@bradfitz
Copy link
Contributor

In my ongoing quest to convert Camlistore from r60 to ~Go1, I keep hitting build issues
where the Go tool doesn't tell me the actual problem.

Consider this log:

bradmac-2:camlistore.org bradfitz$ go build ./server/camlistored
./server/camlistored
    imports camlistore.org/pkg/serverconfig
    imports camlistore.org/pkg/blobserver
    imports camlistore/pkg/blobref: /Users/bradfitz/src/camlistore.org/pkg/blobserver/mergedenum.go:19:8: package could not be found locally
./server/camlistored
    imports camlistore/pkg/blobserver/cond: /Users/bradfitz/src/camlistore.org/server/camlistored/camlistored.go:40:2: package could not be found locally
./server/camlistored
    imports camlistore/pkg/blobserver/localdisk: /Users/bradfitz/src/camlistore.org/server/camlistored/camlistored.go:41:2: package could not be found locally
./server/camlistored
    imports camlistore/pkg/blobserver/remote: /Users/bradfitz/src/camlistore.org/server/camlistored/camlistored.go:42:2: package could not be found locally
./server/camlistored
    imports camlistore/pkg/blobserver/replica: /Users/bradfitz/src/camlistore.org/server/camlistored/camlistored.go:43:2: package could not be found locally
./server/camlistored
    imports camlistore/pkg/blobserver/s3: /Users/bradfitz/src/camlistore.org/server/camlistored/camlistored.go:44:2: package could not be found locally
./server/camlistored
    imports camlistore/pkg/blobserver/shard: /Users/bradfitz/src/camlistore.org/server/camlistored/camlistored.go:45:2: package could not be found locally
./server/camlistored
    imports camlistore/pkg/search: /Users/bradfitz/src/camlistore.org/server/camlistored/camlistored.go:51:2: package could not be found locally
./server/camlistored
    imports camlistore/pkg/server: /Users/bradfitz/src/camlistore.org/server/camlistored/camlistored.go:52:2: package could not be found locally


bradmac-2:camlistore.org bradfitz$ go build ./pkg/serverconfig/
./pkg/serverconfig/
    imports camlistore.org/pkg/blobserver
    imports camlistore/pkg/blobref: /Users/bradfitz/src/camlistore.org/pkg/blobserver/mergedenum.go:19:8: package could not be found locally


bradmac-2:camlistore.org bradfitz$ go build ./pkg/blobserver/
./pkg/blobserver/
    imports camlistore/pkg/blobref: /Users/bradfitz/src/camlistore.org/pkg/blobserver/mergedenum.go:19:8: package could not be found locally


bradmac-2:camlistore.org bradfitz$ go build ./pkg/blobref/
# camlistore.org/pkg/osutil
pkg/osutil/paths.go:85: undefined: os.ENOENT



If that os.ENOENT was the whole problem, I wish the first go build would've told me that.
@dsymonds
Copy link
Contributor

Comment 1:

Labels changed: added go1-must, removed priority-triage.

@bradfitz
Copy link
Contributor Author

Comment 2:

Sorry for the noise. I didn't see the missing ".org" in there.

Status changed to WorkingAsIntended.

@rsc rsc added this to the Go1 milestone Apr 14, 2015
@rsc rsc removed the go1-must label Apr 14, 2015
@golang golang locked and limited conversation to collaborators Jun 24, 2016
@rsc rsc removed their assignment Jun 22, 2022
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants