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

go1.18 compatibility: export GOFLAGS="-buildvcs=false" #129

Merged
merged 1 commit into from
Apr 20, 2022

Conversation

jfkw
Copy link
Member

@jfkw jfkw commented Apr 12, 2022

PR to RPM spec file for go1.18 compatibility: export GOFLAGS="-buildvcs=false" in sections %build and %check.

Closes #128.

After go1.18.1 a follow-up PR to #128 will remove the export in %check (go test).

djoreilly
djoreilly previously approved these changes Apr 12, 2022
Copy link
Collaborator

@djoreilly djoreilly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@skazi0 skazi0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some conditions are needed around this to make it backward compatible

suseconnect-ng.spec Outdated Show resolved Hide resolved
@JanZerebecki
Copy link
Collaborator

Maybe instead we can rm -rf .git in %prep.

@djoreilly
Copy link
Collaborator

Maybe instead we can rm -rf .git in %prep.

or add git to BuildRequires? I think either way would be cleaner

* go1.18+ detects VCS e.g. .git in sources
  https://go.dev/doc/go1.18#go-version
* Default behavior -buildvcs=auto calls git to embed build info
@JanZerebecki JanZerebecki force-pushed the SUSE#128-go1.18-buildvcs-git-softdep branch from 29b8399 to 7497adf Compare April 14, 2022 11:07
Copy link
Contributor

@skazi0 skazi0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@JanZerebecki JanZerebecki merged commit 368ea44 into SUSE:main Apr 20, 2022
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.

go1.18+ default -buildvcs=auto soft dependency on git or export GOFLAGS="-buildvcs=false"
4 participants