-
Notifications
You must be signed in to change notification settings - Fork 687
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up version-number handling in the Go code
1. The ldflags thing is a sham, we must always get it from the ambassador.version file. + And therefore we should not set -ldflags in Dockerfile or builder.sh. And because the 'version' build-arg is now unused, remove that too. 2. Use go-shellquote instead of our own janky de-quoting. 3. Simplify by using os.ReadFile. 4. Don't use global variables. 5. Emphasize that the version-parsing code must be kept in-sync with VERSION.py Signed-off-by: Luke Shumaker <[email protected]>
- Loading branch information
Showing
5 changed files
with
26 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters