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

Build binaries without dependency on cgo #179

Merged
merged 1 commit into from
Jul 11, 2023
Merged

Build binaries without dependency on cgo #179

merged 1 commit into from
Jul 11, 2023

Conversation

vicpadilla
Copy link
Member

When trying to build new versions of the images, these fail due to missing dynamic libs in the container:

Step #1: /go-app: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /go-app)
Step #1: /go-app: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /go-app)

Adding CGO_ENABLED=0 makes the go compiler produce a binary that doesn't require those libs.

@vicpadilla vicpadilla requested a review from Aric1088 July 11, 2023 20:32
Copy link
Contributor

@Aric1088 Aric1088 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vicpadilla vicpadilla merged commit feba9bc into master Jul 11, 2023
@vicpadilla vicpadilla deleted the nocgo branch July 11, 2023 20:44
khhini pushed a commit to khhini/cloud-build-notifiers that referenced this pull request Oct 12, 2024
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

Successfully merging this pull request may close these issues.

2 participants