-
Notifications
You must be signed in to change notification settings - Fork 24
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
Add -buildvcs=false to Makefile #104
Conversation
Any implications of this setting flag to |
Would be good to mention in the summary why and when this started failing, I believe this is only applicable to when the plugins are used as git submodules, and due to this change in golang correct? golang/go#37475 |
Generally, setting the |
what does this mean? what specifically does this flag disable? Are there any features we currently use that this disables? |
https://tip.golang.org/doc/go1.18 This flag seems to be introduced in golang 1.18. Will this change be backwards compatible with go version of the system? Do we want to make this flag conditional on go version? |
I agree, updated the summary. |
I was mentioning general implications. We don't depend on it. |
Added logic to use the flag based on golang version |
Summary
Make release is failing on amazon-ecs-agent when we update the submodules.
The Error message is:
This change is to include
-buildvcs=false
flag to the go build in Make file.This error occurred after we updated the amazon-ecs-cni-plugins sub module in amazon-ecs-agent to pull the latest commit due to this change in golang: golang/go#37475
Implementation details
Added
-buildvcs=false
flag in Make file.-buildvcs=false
excludes version control information when golang version is >= 1.18.Testing
make unit-test
make release on ecs-agent repo
New tests cover the changes: no
Description for the changelog
bug-Fixed failed make release on ecs-agent repo
Licensing
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.