-
Notifications
You must be signed in to change notification settings - Fork 18k
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: get missing packages for files with build tag #4742
Labels
Milestone
Comments
Thank you for replies. `go get -tags mysql .` works but... I still need to use `go get .` to get go-sqlite3. I would prefer to use one command to download all missing packages instead of two or more. Maybe something like `go get -alltags .` or `go get -all .` could be implemented? Or update `go get .` to always get all missing packages from all files. Best regards, Dobrosław Żybort |
Sorry, looks like you must misunderstood me. I want to run `go get .` in my project source directory and it should *download* go-sqlite3 *and* mymysql packages *same time*. I found where is problem: build !mysql go-sqlite3 is referenced in file with "build !mysql" tag. mymysql is referenced in file with "build mysql" tag. Now I need to run two commands to get both of them: `go get -tags mysql .` and `go get .` I want to use *only one command* to get both of them. If I remove `// +build !mysql` then `go get -tags mysql .` will download both of them at once, but I want it to allow simple `go build` build my project with sqlite support. Best regards, Dobrosław Żybort P.S. Sorry if I'm wasting your time. |
This issue was closed by revision 46d6f3c. 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: