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

fix: make sure CGO_ENABLED is normally off, fixes #6046 #6050

Merged
merged 5 commits into from Apr 4, 2024

Conversation

rfay
Copy link
Member

@rfay rfay commented Apr 4, 2024

The Issue

In DDEV v1.23.0-alpha1, the released binaries were released with CGO_ENABLED=1, which means they can't run everywhere they're intended to run. This includes Ubuntu 20.04

How This PR Solves The Issue

  • Make sure we build it right
  • Add cgo_enabled to ddev version so we can check it
  • Update Makefile and github builds to test and make sure we have it right.

Manual Testing Instructions

You can already test the artifacts built this way from the experimental release https://github.com/ddev-test/ddev/releases/tag/v1.22.10-aaa3 (Do not use this for anything but testing this issue).

  • ddev version should show cgo_enabled=0

Automated Testing Overview

We now check in the build pipeline to make sure the CGO_ENABLED version is correct.

Related Issue Link(s)

Release/Deployment Notes

@rfay rfay requested a review from stasadev April 4, 2024 16:54
@github-actions github-actions bot added bugfix dependencies Pull requests that update a dependency file labels Apr 4, 2024
Copy link

github-actions bot commented Apr 4, 2024

Copy link
Member

@stasadev stasadev left a comment

Choose a reason for hiding this comment

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

I checked the artifacts from https://github.com/ddev-test/ddev/releases/tag/v1.22.10-aaa3 and from this PR, both show cgo_enabled 0.

@rfay rfay marked this pull request as ready for review April 4, 2024 17:55
@rfay rfay requested a review from a team as a code owner April 4, 2024 17:55
@rfay rfay merged commit bfbba3e into ddev:master Apr 4, 2024
25 of 26 checks passed
@rfay rfay deleted the 20240404_disable_CGO branch April 4, 2024 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants