Skip to content

fix(bun,deno): duplicated build flags #5771

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 1 commit into from
May 12, 2025
Merged

fix(bun,deno): duplicated build flags #5771

merged 1 commit into from
May 12, 2025

Conversation

caarlos0
Copy link
Member

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
@caarlos0 caarlos0 requested a review from Copilot May 12, 2025 21:49
@caarlos0 caarlos0 self-assigned this May 12, 2025
@caarlos0 caarlos0 added the bug Something isn't working label May 12, 2025
@pull-request-size pull-request-size bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label May 12, 2025
Copy link
Contributor

@Copilot 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 fixes an issue with duplicated build flags in both the Deno and Bun builders by removing an earlier, redundant flag append and ensuring the proper sequence of command arguments.

  • Removed duplicate flag appending in the Deno builder
  • Removed duplicate flag appending in the Bun builder

Reviewed Changes

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

File Description
internal/builders/deno/build.go Removed duplicate command flag appends; now using a single append with "--target", "--output", and build.Main.
internal/builders/bun/build.go Removed duplicate command flag appends; now using a single append with "--target", "--outfile", and build.Main.
Comments suppressed due to low confidence (2)

internal/builders/deno/build.go:127

  • Ensure that replacing the earlier append using build.Flags with the later use of flags does not unintentionally omit any necessary flags required for the build configuration.
command = append(

internal/builders/bun/build.go:140

  • Confirm that the updated flag append logic using flags (and the use of '--outfile' for Bun) correctly replaces the duplicated logic, ensuring no essential build flags are lost in the process.
command = append(

Copy link

Deploying goreleaser with  Cloudflare Pages  Cloudflare Pages

Latest commit: 07a63e0
Status: ✅  Deploy successful!
Preview URL: https://c7b65fe4.goreleaser.pages.dev
Branch Preview URL: https://deno-bun-build-flags.goreleaser.pages.dev

View logs

@caarlos0 caarlos0 merged commit 768d64d into main May 12, 2025
16 checks passed
@caarlos0 caarlos0 deleted the deno-bun-build-flags branch May 12, 2025 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 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.

1 participant