Skip to content

Conversation

@mnaumanali94
Copy link
Contributor

remove go binaries dependency

remove go binaries dependency
@mnaumanali94 mnaumanali94 merged commit 577bade into master Jun 3, 2025
2 of 4 checks passed
@mnaumanali94 mnaumanali94 requested a review from Copilot June 3, 2025 23:39
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes the dependency on externally hosted Go binaries by building the node-prune binary from source using a dedicated Go build stage.

  • Introduces a new build stage (using golang:1.18) to install node-prune from source.
  • Removes the previous dependency on downloading the binary via curl.

FROM golang:1.18 as nodeprune

# Build node-prune from source
RUN go install github.com/tj/node-prune@latest
Copy link

Copilot AI Jun 3, 2025

Choose a reason for hiding this comment

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

It's recommended to specify a fixed version of node-prune instead of using '@latest' to ensure reproducible builds.

Suggested change
RUN go install github.com/tj/node-prune@latest
RUN go install github.com/tj/node-prune@v1.0.0

Copilot uses AI. Check for mistakes.
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