Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

Compile plugins as static (CGO_ENABLED=0)#936

Merged
reedloden merged 1 commit intomasterfrom
reed/static-binaries
Sep 29, 2023
Merged

Compile plugins as static (CGO_ENABLED=0)#936
reedloden merged 1 commit intomasterfrom
reed/static-binaries

Conversation

@reedloden
Copy link
Copy Markdown
Contributor

@reedloden reedloden commented Sep 29, 2023

The change to distroless static in #928 broke plugin binaries, as the distroless image doesn't have glibc. However, there's no reason for the plugins to need glibc, so just change them to all CGO_ENABLED=0.

Additionally, some minor fixes:

  • Change one place where GO_VERSION wasn't properly set/updated.
  • Correct build process for access/email.
  • Remove reference to previously removed access/example.

Fixes #935.

@reedloden reedloden self-assigned this Sep 29, 2023
@reedloden reedloden changed the title Compile plugins as static (CGO_BUILD=0) Compile plugins as static (CGO_ENABLED=0) Sep 29, 2023
Comment thread Makefile
The change to distroless static in #928 broke plugin binaries, as the distroless image
doesn't have glibc. However, there's no reason for the plugins to need glibc,
so just change them to all `CGO_ENABLED=0`.

Additionally, some minor fixes:
* Change one place where `GO_VERSION` wasn't properly set/updated.
* Correct build process for `access/email`.
* Remove reference to previously removed `access/example`.

Fixes #935.
@reedloden reedloden merged commit 27c1763 into master Sep 29, 2023
@reedloden reedloden deleted the reed/static-binaries branch September 29, 2023 15:41
Copy link
Copy Markdown
Contributor

@tcsc tcsc left a comment

Choose a reason for hiding this comment

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

For what it's worth, LGTM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Access plugin containers are broken in v14.0.1

5 participants