Skip to content
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

Preserve build tags #29

Merged
merged 5 commits into from
Sep 13, 2024
Merged

Preserve build tags #29

merged 5 commits into from
Sep 13, 2024

Conversation

Gelio
Copy link
Owner

@Gelio Gelio commented Sep 13, 2024

go-global-update is now aware of build tags (go install -tags a,b,c...) that were used to install the binary. It will reuse the tags when updating/reinstalling packages.

This PR includes the feature, as well as unit and integration tests for it.

Fixes #28

Find the build tags (`go build -tags a,b,c`) from the `go version -m`
output and store them in the introspected go binary information.

This information will later be used to preserve the build tags while
upgrading a binary.
`go-global-update` is now aware of build tags (`go install -tags a,b,c
...`) that were used to install the binary. It will reuse the same build
tags when updating/reinstalling packages.

Fixes #28
`ioutil.TempDir` is deprecated. `os.MkdirTemp` should be used instead.
@Gelio Gelio force-pushed the preserve-build-tags branch from f5cf546 to 36cb606 Compare September 13, 2024 10:20
@Gelio Gelio merged commit e6f6e58 into main Sep 13, 2024
13 checks passed
@Gelio Gelio deleted the preserve-build-tags branch September 13, 2024 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

hugo+extended is updated to plain hugo
1 participant