Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Applied same -ldflags -X name value -> name=value fix as in a62e510f.#1193

Merged
technoweenie merged 1 commit into
git-lfs:masterfrom
javabrett:script-run-ldflags-X-equals
May 4, 2016
Merged

Applied same -ldflags -X name value -> name=value fix as in a62e510f.#1193
technoweenie merged 1 commit into
git-lfs:masterfrom
javabrett:script-run-ldflags-X-equals

Conversation

@javabrett

Copy link
Copy Markdown
Contributor

Squashes script/run warning:
link: warning: option -X github.com/github/git-lfs/lfs.GitCommit 54c5efa may not work in future releases; use -X github.com/github/git-lfs/lfs.GitCommit=54c5efa

Squashes script/run warning:
link: warning: option -X github.com/github/git-lfs/lfs.GitCommit 54c5efa may not work in future releases; use -X github.com/github/git-lfs/lfs.GitCommit=54c5efa
@technoweenie

Copy link
Copy Markdown
Contributor

IIRC, this breaks on older versions of Go. However, I see that Go 1.7 is nearing feature freeze, so we may want to lock LFS to Go 1.6+.

@javabrett

Copy link
Copy Markdown
Contributor Author

Right, I think this change was made in the main build already for the Go 1.5 change, a62e510 . So if it doesn't work for < 1.5 it should show-up already? I confess I am using 1.6.

I think moving to at least Go >= 1.5, or 1.6 if the vendor imports are reworked, has been discussed in another issue.

@technoweenie

Copy link
Copy Markdown
Contributor

Turns out I already had this conversation, and decided supporting whatever old Go version wasn't worth it. a62e510

I just checked in Go 1.3-1.6. It works on all of them, but only prints the commit in Go 1.5+.

@technoweenie technoweenie merged commit a24530e into git-lfs:master May 4, 2016
@javabrett javabrett deleted the script-run-ldflags-X-equals branch May 4, 2016 13:42
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.

2 participants