-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Fix -ldflags for Go 1.5 #1365
Fix -ldflags for Go 1.5 #1365
Conversation
Use correct form -X <name>=<value> for Go 1.5
Merged in c2869ae |
Maybe it is just me, but when I tried to run the Makefile on with Go 1.4.2, it gives an error:
I thought of adding a |
@anthonyfok you are right - it doesn't work on 1.4.2. The only solution will be to either require Go 1.5 or to do as you suggest and wrap in a version check. From
They have changed it in 1.5 in that
I think it is up to hugo to decide if 1.5 is going to be required or not. |
I think we say that for the provided make to work, 1.5 is required. |
That seems logical - there should be very little reason to not move forward with 1.5. I recommend adjusting the README note that discusses setting the build version. |
I think we're gonna blame the Go team for this one: They promised no breaking API changes, but this one is so minor that we're not making any fuzz -- and we are not doing some extra work to be backward compatible here. We got enough work on the plate as it is. |
Also remove extraneous trailing space (whitespace-mode from emacs). See also gohugoio#1365
Also remove extraneous trailing space (whitespace-mode from emacs). See also gohugoio#1365
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
In Go 1.5, the following warning is given when running the Makefile:
This pull request fixes the form of
ldflags
to be correct for Go 1.5. I believe this works fine on Go 1.4