-
Notifications
You must be signed in to change notification settings - Fork 26.4k
contrib/persistent-https: update ldflags syntax for Go 1.7+ #270
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
Closed
Conversation
This file contains hidden or 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 fixes contrib/persistent-https builds for Go v1.7+ and is compatible with Go v1.5+. Running `make all` in `contrib/persistent-https` results in a failure on Go 1.7 and above. Specifically, the error is: go build -o git-remote-persistent-https \ -ldflags "-X main._BUILD_EMBED_LABEL 1468613136" # _/Users/parkr/github/git/contrib/persistent-https /usr/local/Cellar/go/1.7rc1/libexec/pkg/tool/darwin_amd64/link: -X flag requires argument of the form importpath.name=value make: *** [git-remote-persistent-https] Error 2 This `name=value` syntax for the -X flag was introduced in Go v1.5 (released Aug 19, 2015): - release notes: https://golang.org/doc/go1.5#link - commit: golang/go@12795c0 In Go v1.7, support for the old syntax was removed: - release notes: https://tip.golang.org/doc/go1.7#compiler - commit: golang/go@51b624e This patch includes the `=` to fix builds with Go v1.7+.
derrickstolee
pushed a commit
to derrickstolee/git
that referenced
this pull request
Jun 2, 2020
derrickstolee
pushed a commit
to derrickstolee/git
that referenced
this pull request
Aug 3, 2020
derrickstolee
pushed a commit
to derrickstolee/git
that referenced
this pull request
Nov 3, 2020
derrickstolee
pushed a commit
to derrickstolee/git
that referenced
this pull request
Dec 23, 2020
derrickstolee
pushed a commit
to derrickstolee/git
that referenced
this pull request
Dec 29, 2020
derrickstolee
pushed a commit
to derrickstolee/git
that referenced
this pull request
Mar 19, 2021
derrickstolee
pushed a commit
to derrickstolee/git
that referenced
this pull request
Aug 10, 2021
derrickstolee
pushed a commit
to derrickstolee/git
that referenced
this pull request
Aug 15, 2021
derrickstolee
pushed a commit
to derrickstolee/git
that referenced
this pull request
Aug 17, 2021
derrickstolee
pushed a commit
to derrickstolee/git
that referenced
this pull request
Nov 2, 2021
derrickstolee
pushed a commit
to derrickstolee/git
that referenced
this pull request
Nov 10, 2021
derrickstolee
pushed a commit
to derrickstolee/git
that referenced
this pull request
Nov 16, 2021
derrickstolee
pushed a commit
to derrickstolee/git
that referenced
this pull request
Jan 18, 2022
derrickstolee
pushed a commit
to derrickstolee/git
that referenced
this pull request
Jan 28, 2022
derrickstolee
pushed a commit
to derrickstolee/git
that referenced
this pull request
Mar 16, 2022
derrickstolee
pushed a commit
to derrickstolee/git
that referenced
this pull request
May 22, 2022
derrickstolee
pushed a commit
to derrickstolee/git
that referenced
this pull request
Jun 23, 2022
derrickstolee
pushed a commit
to derrickstolee/git
that referenced
this pull request
Jun 27, 2022
derrickstolee
pushed a commit
to derrickstolee/git
that referenced
this pull request
Jul 14, 2022
derrickstolee
pushed a commit
to derrickstolee/git
that referenced
this pull request
Sep 30, 2022
derrickstolee
pushed a commit
to derrickstolee/git
that referenced
this pull request
Oct 4, 2022
derrickstolee
pushed a commit
to derrickstolee/git
that referenced
this pull request
Nov 8, 2022
derrickstolee
pushed a commit
to derrickstolee/git
that referenced
this pull request
Mar 15, 2023
derrickstolee
pushed a commit
to derrickstolee/git
that referenced
this pull request
Mar 15, 2023
derrickstolee
pushed a commit
to derrickstolee/git
that referenced
this pull request
May 11, 2023
derrickstolee
pushed a commit
to derrickstolee/git
that referenced
this pull request
Aug 23, 2023
vdye
pushed a commit
to vdye/git
that referenced
this pull request
Jan 9, 2024
deserialize-status: silently fallback if we cannot read cache file
derrickstolee
pushed a commit
to derrickstolee/git
that referenced
this pull request
Apr 30, 2024
derrickstolee
pushed a commit
to derrickstolee/git
that referenced
this pull request
May 31, 2024
derrickstolee
pushed a commit
to derrickstolee/git
that referenced
this pull request
Jun 19, 2024
derrickstolee
pushed a commit
to derrickstolee/git
that referenced
this pull request
Jul 19, 2024
derrickstolee
pushed a commit
to derrickstolee/git
that referenced
this pull request
Aug 23, 2024
derrickstolee
pushed a commit
to derrickstolee/git
that referenced
this pull request
Sep 30, 2024
derrickstolee
pushed a commit
to derrickstolee/git
that referenced
this pull request
Oct 9, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This fixes contrib/persistent-https builds for Go v1.7+ and is compatible with Go v1.5+.
Running
make all
incontrib/persistent-https
results in a failure on Go 1.7 and above.Specifically, the error is:
This
name=value
syntax for the -X flag was introduced in Go v1.5 (released Aug 19, 2015):In Go v1.7, support for the old syntax was removed:
This patch includes the
=
to fix builds with Go v1.7+.