Skip to content

build: Clean up Goreleaser change#32098

Merged
scottrigby merged 3 commits into
helm:mainfrom
scottrigby:fix/cleanup-goreleaser-make-actions
May 4, 2026
Merged

build: Clean up Goreleaser change#32098
scottrigby merged 3 commits into
helm:mainfrom
scottrigby:fix/cleanup-goreleaser-make-actions

Conversation

@scottrigby

Copy link
Copy Markdown
Member

Cleans up #31343

What this PR does / why we need it:

#31343 was a much needed step in cleaning up our old build process. However through much back and forth, some unneeded changes were left.

Special notes for your reviewer:

Makefile:

  • restore dist target
  • remove unused TARGETS var

gh release action:

  • restore build-cross to release and canary-release jobs

If applicable:

  • this PR contains user facing changes (the docs needed label should be applied if so)
  • this PR contains unit tests
  • this PR has been tested for backwards compatibility

Makefile:
- restore dist target
- remove unused TARGETS var

gh release action:
- restore build-cross to release and canary-release jobs

Signed-off-by: Scott Rigby <scott@r6by.com>
Copilot AI review requested due to automatic review settings May 4, 2026 19:59
@pull-request-size pull-request-size Bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label May 4, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 tidies up the post-#31343 GoReleaser-based release flow by reintroducing a dist packaging step in the Makefile and ensuring the GitHub release workflow runs the cross-build step before packaging.

Changes:

  • Remove the unused TARGETS variable from the Makefile.
  • Rework make dist to package already-built _dist/<os>-<arch>/ directories (instead of invoking GoReleaser itself).
  • Update the release workflow to run make build-cross before make dist checksum.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
Makefile Removes unused build variable and changes dist to package _dist outputs (tar/zip + add LICENSE/README).
.github/workflows/release.yml Restores make build-cross in release and canary-release jobs before packaging/checksums.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Makefile
Comment thread Makefile
Comment on lines +181 to +185
cd _dist && \
$(DIST_DIRS) cp ../LICENSE {} \; && \
$(DIST_DIRS) cp ../README.md {} \; && \
$(DIST_DIRS) tar -zcf helm-${VERSION}-{}.tar.gz {} \; && \
$(DIST_DIRS) zip -r helm-${VERSION}-{}.zip {} \; \

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

subdirectories will not exist here. no need to over-engineer. we will be rewriting this part of the build process at some point so keeping changes targeted.

Comment thread Makefile Outdated
Comment thread .github/workflows/release.yml Outdated
TerryHowe
TerryHowe previously approved these changes May 4, 2026

@TerryHowe TerryHowe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

/lgtm

Comment thread Makefile Outdated
@@ -177,19 +176,14 @@ build-cross: $(GORELEASER)

.PHONY: dist
dist: LDFLAGS += -extldflags "-static"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
dist: LDFLAGS += -extldflags "-static"

nit

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

missed that this from the revert of that target, thanks. Also saw copilot noticed this - but somehow I did not 😅

Co-authored-by: Terry Howe <terrylhowe@gmail.com>
Signed-off-by: Scott Rigby <scott@r6by.com>
Copilot AI review requested due to automatic review settings May 4, 2026 22:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Makefile
Comment thread .github/workflows/release.yml Outdated

- name: Build Helm Binaries
run: |
make build-cross VERSION="${{ github.ref_name }}"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

good find. this was my selective revert mistake. fixed in 0a1e03f

Signed-off-by: Scott Rigby <scott@r6by.com>
@scottrigby scottrigby merged commit e23bf3a into helm:main May 4, 2026
5 checks passed
@gjenkins8 gjenkins8 deleted the fix/cleanup-goreleaser-make-actions branch May 5, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants