Skip to content
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

Unable to sign compiled executable #260

Closed
harshu4 opened this issue Mar 13, 2024 · 3 comments
Closed

Unable to sign compiled executable #260

harshu4 opened this issue Mar 13, 2024 · 3 comments

Comments

@harshu4
Copy link

harshu4 commented Mar 13, 2024

Issue description

I am not able to sign my compiled binary. I am able to build and sign binary of the samples provided but when i try to compile and sign my own code it gives the following error

EGo v1.5.0 (952087d)
ERROR: The .oeinfo section is missing in the binary.
Maybe the binary was not built with 'ego-go build'?

To reproduce

Steps to reproduce the behavior:

  1. git clone https://github.com/harshu4/openmesh-node
  2. cd openmesh-node
  3. ego-go build /cmd/app/main.go
  4. ego sign

Expected behavior

Expected behaviour would be that the binary is signed properly

@harshu4
Copy link
Author

harshu4 commented Mar 13, 2024

used to work with older version of ego

@thomasten
Copy link
Member

Thanks for reporting! I can confirm that this behavior is caused by the update to Go 1.21 with EGo 1.5.0. Your go.mod specifies 1.22. Since Go 1.21, Go will download the newer toolchain in this case. So it effectively builds with the original go instead of ego-go. We'll investigate how we can best handle this in ego-go. For now, please edit your go.mod and set the version to 1.21. Then rebuild with ego-go.

@thomasten
Copy link
Member

fixed in v1.5.2

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

No branches or pull requests

2 participants