-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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: use different output dirs with -tags #4443
Labels
Milestone
Comments
This has been biting me. ba12:camlistore.org bradfitz$ go test ./pkg/index/sqlite/ warning: building out-of-date packages: camlistore.org/pkg/test camlistore.org/pkg/index/indextest installing these packages with 'go test -i ./pkg/index/sqlite/' will speed future tests. ^[[Apanic: camlistored was not built with SQLite support. Rebuild with go get/install --tags=with_sqlite [recovered] panic: camlistored was not built with SQLite support. Rebuild with go get/install --tags=with_sqlite goroutine 3 [running]: testing.func·003(0x1105efa8, 0x1105d100) /Users/bradfitz/go/src/pkg/testing/testing.go:296 +0xc3 Adding --tags for the test does nothing: ba12:camlistore.org bradfitz$ go test --tags=with_sqlite ./pkg/index/sqlite/ warning: building out-of-date packages: camlistore.org/pkg/test camlistore.org/pkg/index/indextest installing these packages with 'go test -i ./pkg/index/sqlite/' will speed future tests. panic: camlistored was not built with SQLite support. Rebuild with go get/install --tags=with_sqlite [recovered] panic: camlistored was not built with SQLite support. Rebuild with go get/install --tags=with_sqlite goroutine 3 [running]: testing.func·003(0x1105efa8, 0x1105d100) /Users/bradfitz/go/src/pkg/testing/testing.go:296 +0xc3 But if I do -i: ba12:camlistore.org bradfitz$ go test -i --tags=with_sqlite ./pkg/index/sqlite/ Then it works: ba12:camlistore.org bradfitz$ go test --tags=with_sqlite ./pkg/index/sqlite/ ok camlistore.org/pkg/index/sqlite 0.256s Related to issue #3832 and issue #3895? |
Okay, back to Go 1.1. But I'm still not 100% sure how this should work. Sometimes a different -tags does not need to create a whole new output tree nor to rebuild everything from scratch. Perhaps instead of reusing -tags there should be a separate -buildlabel that specifies a suffix to use when naming the install directory. Labels changed: added go1.1, removed go1.1maybe. |
This issue was closed by revision e778f93. Status changed to Fixed. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: