-
Notifications
You must be signed in to change notification settings - Fork 52
This executable was compiled without using Go modules #4
Comments
Everything looks sane so I imagine something in the binary parsing isn't quite right. I'll try to take a look. If this is an open source project could you upload the EXE file somewhere? I think I can try to analyze it from non-Windows too and at a minimum see if that works. If it does, I can try to get a windows machine to debug further. |
Unfortunately it is a closed src project. But I can try with an opensource one and upload that. |
That'd be helpful, thanks! |
You could also reproduce it with your binary golicense_0.1.1_windows_x86_64. With this one I'll get the same error. |
Oh of course. I'll give that a shot. Thanks |
here would be the binary of one of my public projects: https://gist.github.com/bakito/26a7be21e592a648c518ace32083a8a8 |
For my ELF executable with this symptom, I was able to track it down to the executable having multiple rodata sections, only the first of which rsc's |
Hey @brimstone, awesome find. I haven't verified that this is the same issue happening here but regardless that's a great thing to find. I see your PR on rsc/goversion. Let's see if we get a merge and if not I can temporarily fork as well. |
We have the same problem with open-source https://github.com/drud/ddev, it's open-source, just The normal way of building this (go 1.11) is just Edit:
So something about how we mount the source and objects into the container is affecting this. |
I have the same problem with one of my binaries (while licenses in another comparable binary are detected fine). The problematic binary uses CGo (i.e. some loose C functions and an external static C library are linked into the final executable), the other does not. Seeing that @bakito also has CGO-environment variables set, I suspect that CGo has something to do with it. |
We were also bitten by this. As far as I understand it, you are currently constrained by what A potential workaround to that may be to use the output of |
I'm trying to get golicense to run on windows with go 1.11.2 and modules enabled.
Golicense tells me that the module was not compiled with go modules or has no dependencies.
Both is not correct.
Error Message:
Go Modules:
GO111MODULE=on
Go Env:
go.mod:
The text was updated successfully, but these errors were encountered: