-
Notifications
You must be signed in to change notification settings - Fork 607
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
Consistently generate build tags metadata #4582
Merged
Merged
Conversation
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
sigv
force-pushed
the
build_tags_make_4_3
branch
from
March 12, 2023 15:27
18975e6
to
39c4c05
Compare
Dockerfile receives a minor tweak for proper output. BuildTags value is expected as a plain `netgo,ledger,muslc` string, however the current approach wraps quotes inside of quotes, and the resulting string is `'netgo,ledger,muslc'` which gets escaped a few more times (unnecessarily). Additionally, Makefile receives a minor tweak for everyone who builds directly. With Make 4.3+, the empty whitespace does not seem to work as originally intended. This causes build tags to be `netgo ledger,` on Ubuntu 22.04 and other systems that include the newer Make version. The build tags were intended as `netgo,ledger` which can be observed on Make 4.2 (shipped with Ubuntu 20.04). This change swaps out the `+=` use in favor of an explicit `:=`. Ref: https://www.gnu.org/software/make/manual/html_node/Appending.html Upstream: cosmos/gaia@297cdb9
sigv
force-pushed
the
build_tags_make_4_3
branch
from
March 12, 2023 15:30
39c4c05
to
9687891
Compare
p0mvn
approved these changes
Mar 13, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK, thank you for the through breakdown and references!
p0mvn
added
V:state/compatible/backport
State machine compatible PR, should be backported
A:backport/v15.x
backport patches to v15.x branch
labels
Mar 13, 2023
mergify bot
pushed a commit
that referenced
this pull request
Mar 13, 2023
Dockerfile receives a minor tweak for proper output. BuildTags value is expected as a plain `netgo,ledger,muslc` string, however the current approach wraps quotes inside of quotes, and the resulting string is `'netgo,ledger,muslc'` which gets escaped a few more times (unnecessarily). Additionally, Makefile receives a minor tweak for everyone who builds directly. With Make 4.3+, the empty whitespace does not seem to work as originally intended. This causes build tags to be `netgo ledger,` on Ubuntu 22.04 and other systems that include the newer Make version. The build tags were intended as `netgo,ledger` which can be observed on Make 4.2 (shipped with Ubuntu 20.04). This change swaps out the `+=` use in favor of an explicit `:=`. Ref: https://www.gnu.org/software/make/manual/html_node/Appending.html Upstream: cosmos/gaia@297cdb9 (cherry picked from commit 9d01b70)
p0mvn
pushed a commit
that referenced
this pull request
Mar 13, 2023
Dockerfile receives a minor tweak for proper output. BuildTags value is expected as a plain `netgo,ledger,muslc` string, however the current approach wraps quotes inside of quotes, and the resulting string is `'netgo,ledger,muslc'` which gets escaped a few more times (unnecessarily). Additionally, Makefile receives a minor tweak for everyone who builds directly. With Make 4.3+, the empty whitespace does not seem to work as originally intended. This causes build tags to be `netgo ledger,` on Ubuntu 22.04 and other systems that include the newer Make version. The build tags were intended as `netgo,ledger` which can be observed on Make 4.2 (shipped with Ubuntu 20.04). This change swaps out the `+=` use in favor of an explicit `:=`. Ref: https://www.gnu.org/software/make/manual/html_node/Appending.html Upstream: cosmos/gaia@297cdb9 (cherry picked from commit 9d01b70) Co-authored-by: Valters Jansons <[email protected]>
pysel
pushed a commit
that referenced
this pull request
Mar 14, 2023
Dockerfile receives a minor tweak for proper output. BuildTags value is expected as a plain `netgo,ledger,muslc` string, however the current approach wraps quotes inside of quotes, and the resulting string is `'netgo,ledger,muslc'` which gets escaped a few more times (unnecessarily). Additionally, Makefile receives a minor tweak for everyone who builds directly. With Make 4.3+, the empty whitespace does not seem to work as originally intended. This causes build tags to be `netgo ledger,` on Ubuntu 22.04 and other systems that include the newer Make version. The build tags were intended as `netgo,ledger` which can be observed on Make 4.2 (shipped with Ubuntu 20.04). This change swaps out the `+=` use in favor of an explicit `:=`. Ref: https://www.gnu.org/software/make/manual/html_node/Appending.html Upstream: cosmos/gaia@297cdb9
Closed
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A:backport/v15.x
backport patches to v15.x branch
T:build
V:state/compatible/backport
State machine compatible PR, should be backported
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
References: cosmos/gaia#2017
What is the purpose of the change
Dockerfile receives a minor tweak for proper output.
BuildTags value is expected as a plain
netgo,ledger,muslc
string, however the current approach wraps quotes inside of quotes, and the resulting string is'netgo,ledger,muslc'
which gets escaped a few more times (unnecessarily).Additionally, Makefile receives a minor tweak for everyone who builds directly.
With Make 4.3+, the empty whitespace does not seem to work as originally intended. This causes build tags to be
netgo ledger,
on Ubuntu 22.04 and other systems that include the newer Make version. The build tags were intended asnetgo,ledger
which can be observed on Make 4.2 (shipped with Ubuntu 20.04).This change swaps out the
+=
use in favor of an explicit:=
. ReferenceBrief Changelog
version
CLI subcommand and server info API calls.Testing and Verifying
This change is a trivial rework / code cleanup without any test coverage.
The difference in
build_tags
output can be observed:Documentation and Release Note
Unreleased
section inCHANGELOG.md
? (yes)