Skip to content

chore: fix upx compression #583

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

Merged
merged 4 commits into from
Mar 3, 2025
Merged

Conversation

duncanista
Copy link
Contributor

What?

Fixes UPX compression to use latest v5.0.0
Previous one wasn't performant enough for cross-architecture compression

How?

  • Install UPX from GitHub in layer builder
  • Remove compression on Go compilation

#Tests

  • Tested manually in AWS Lambda by running scripts locally

@duncanista duncanista requested a review from a team as a code owner March 3, 2025 18:38
@@ -4,13 +4,26 @@ ARG FILE_SUFFIX

# Install dependencies
RUN apt-get update
RUN apt-get install -y zip binutils
RUN apt-get install -y zip binutils wget tar xz-utils

Choose a reason for hiding this comment

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

Code Quality Violation

package wget should have version pinned (...read more)

When using apt-get install, pin the version to avoid unwanted upgrades and undefined behavior.

View in Datadog  Leave us feedback  Documentation

@duncanista duncanista merged commit 35a7dbc into main Mar 3, 2025
33 checks passed
@duncanista duncanista deleted the jordan.gonzalez/fix-upx-compression branch March 3, 2025 18:53
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