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

CGO disabled to allow running on older distros #393

Merged
merged 1 commit into from
Mar 5, 2024
Merged

CGO disabled to allow running on older distros #393

merged 1 commit into from
Mar 5, 2024

Conversation

csett86
Copy link
Contributor

@csett86 csett86 commented Jan 13, 2024

with CGO we are linking to whatever glibc is in ubuntu-latest, which may
not be present in other distros (Think older Debian, Alpine)

In addition, the docker build with alpine already (implicitly) does not
use CGO, as CGO is still not supported with musl officially if I
understand the following issue correctly: golang/go#19938

So disabling CGO in the released binaries and in the README instructions harmonizes
the behaviour across docker and non-docker builds.

Pull Request Checklist

Signed-off-by: Christoph Settgast csett86_git@quicksands.de

with CGO we are linking to whatever glibc is in ubuntu-latest, which may
not be present in other distros (Think older Debian, Alpine)

In addition, the docker build with alpine already (implicitly) does not
use CGO, as CGO is still not supported with musl officially if I
understand the following issue correctly: golang/go#19938

So disabling CGO in the released binaries and in the README instructions harmonizes
the behaviour across docker and non-docker builds.

Signed-off-by: Christoph Settgast <csett86_git@quicksands.de>
Copy link
Member

@kegsay kegsay left a comment

Choose a reason for hiding this comment

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

Seems sensible, thanks!

@kegsay kegsay merged commit cfff8bc into matrix-org:main Mar 5, 2024
@csett86 csett86 deleted the disable-cgo branch March 23, 2024 18:56
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