-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
[Feature] Improve the compilation of skywalking-rover #12789
Comments
|
$ ldd bin/skywalking-rover-latest-linux-amd64
linux-vdso.so.1 (0x00007ffc287e8000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007faeb7800000)
/lib64/ld-linux-x86-64.so.2 (0x00007faeb7b93000) If go tags are added, it becomes noticeably different. $ ldd bin/skywalking-rover-latest-linux-amd64
not a dynamic executable Setting |
Make sense to me, please add this parameter.
Then, we should consider why the |
Sorry, I found that it was my mistake about failure to build a static executable file. |
Search before asking
Description
When compiling skywalking-rover, add
buildvcs=false
to prevent compilation failures caused by Git in container environments. Additionally, include the flags-tags osusergo,netgo
to achieve fully static compilation, avoiding runtime issues caused by incompatible versions of the glibc library.For more infomation, see:
Use case
No response
Related issues
No response
Are you willing to submit a pull request to implement this on your own?
Code of Conduct
The text was updated successfully, but these errors were encountered: