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

GO Modules: Add support for `mod` flag in build command #1469

Open
jhernandezb opened this Issue Nov 24, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@jhernandezb

jhernandezb commented Nov 24, 2018

With go modules you still can use the 'vendor' directory this specially if you run in a CI and don't want to download all dependencies.

with the mod flag you can specify go build -mod vendor and will use the directory.

go build info

	-mod mode
		module download mode to use: readonly or vendor.
		See 'go help modules' for more.

How to enable/build

  1. go mod vendor make vendored copy of dependencies
  2. go build -mod vendor build using local vendor directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment