-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
go/build: .syso files can't be specified with .go files #16090
Comments
Is your problem the same as #16050? |
I don't believe so. I am using go 1.5 The exe is generated correctly with go build alone. Its only when I pass go files to the build command do I have issues. |
Then I think you need to describe the following:
|
@kevinpostal Can you please provide us with a sample .go and .syso file, and show us what happens when you try to run "go build"? What error message do you get? |
Closing for lack of information. |
It sounds like the answer is: Naming .go files on the command line is a shorthand for making a package directory out of just those Go files. This is a convenience. If you need non-Go files to be in your package, then the solution is to put them in a directory. |
I've ran into the same issue, it appears that when you run 'go build' without naming .go files then it links the syso file (perhaps some autodiscovery?), and when you run go build and name each .go file, then it doesn't link the syso file. There is no error message reported, and the resulting binary still works (it just doesn't have the Windows resources in it). |
I am trying to build a windows golang executable with exe information.
(https://github.com/josephspurrier/goversioninfo)
When using go build alone everything works as desired.
When I try to pass a specific go file to build the resource.syso is not included/added.
How would I go about passing the syso file to the go build command?
The text was updated successfully, but these errors were encountered: