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

chore: set CGO_ENABLED=0 #117

Merged
merged 1 commit into from
Jun 19, 2024
Merged

chore: set CGO_ENABLED=0 #117

merged 1 commit into from
Jun 19, 2024

Conversation

suzuki-shunsuke
Copy link
Contributor

@suzuki-shunsuke suzuki-shunsuke commented Jun 19, 2024

WHAT

(Write the change being made with this pull request)

Set CGO_ENABLED=0 when building hcledit.

https://medium.com/@pengcheng1222/exploring-cgo-enabled-in-go-23cf5cf2fe88

WHY

(Write the motivation why you submit this pull request)

To resolve the issue.

6_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by hcledit)
hcledit: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by hcledit)

Currently, hcledit depends on libc so hcledit doesn't work without libc.
By setting CGO_ENABLED=0 when building hcledit, hcledit works without libc.

@suzuki-shunsuke suzuki-shunsuke marked this pull request as ready for review June 19, 2024 06:18
@@ -1,3 +1,4 @@
version: 2
Copy link
Contributor Author

@suzuki-shunsuke suzuki-shunsuke Jun 19, 2024

Choose a reason for hiding this comment

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

GoReleaser v2 requires version setting.

goreleaser check
  • only configurations files on  version: 2  are supported, yours is  version: 0 , please update your configuration

Copy link
Member

@ryan-ph ryan-ph left a comment

Choose a reason for hiding this comment

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

❤️

@ryan-ph ryan-ph merged commit 2396734 into main Jun 19, 2024
4 checks passed
@ryan-ph ryan-ph deleted the chore-cgo_disabled branch June 19, 2024 06:32
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