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
cmd/go: go version -m does not report versions for c-shared DLLs #45234
Comments
The documentation of An easy fix for this issue could be dropping the go/src/cmd/go/internal/version/version.go Lines 107 to 112 in 4d66d77
go/src/cmd/go/internal/version/version.go Lines 131 to 136 in 4d66d77
|
@gopherbot add OS-Windows |
Related: #48187. |
Closing thia in favor of #48187 |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
go mod init foo
go build -buildmode c-shared -o foo.dll
go version -m foo.dll
What did you expect to see?
What did you see instead?
foo.dll: not executable file
Context
I want to retrieve dependency information from a go binary built using
-buildmode c-shared
in windows.The text was updated successfully, but these errors were encountered: