Skip to content

fix(release): make pre-release build work#23

Merged
isbecker merged 1 commit into
mainfrom
fix/pre-release-build
Dec 15, 2025
Merged

fix(release): make pre-release build work#23
isbecker merged 1 commit into
mainfrom
fix/pre-release-build

Conversation

@isbecker

Copy link
Copy Markdown
Owner

update pre-release workflow

previosly it was set up for something slightly different

Copilot AI review requested due to automatic review settings December 15, 2025 02:47
@isbecker isbecker merged commit c65b41e into main Dec 15, 2025
6 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

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 updates the pre-release workflow to fix issues with downloading treefmt binaries across different platforms. The workflow now uses a LATEST flag instead of PRERELEASE and introduces platform-specific version handling.

Key Changes:

  • Replaced PRERELEASE environment variable with LATEST and TREEFMT_VERSION variables for more explicit version control
  • Updated filename patterns from version-specific (treefmt_2.0.0-rc*_...) to generic wildcards (treefmt_*_...) for non-Windows platforms
  • Windows platforms now explicitly use treefmt version v0.6.1, while other platforms fetch the latest release

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

Comment on lines +88 to +89
latest: ${{ env.LATEST }}
tag: ${{ env.TREEFMT_VERSION }}

Copilot AI Dec 15, 2025

Copy link

Choose a reason for hiding this comment

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

When latest is set to true, providing an empty string for tag may cause ambiguous behavior. For non-Windows platforms where LATEST is true and TREEFMT_VERSION is empty, consider omitting the tag parameter entirely or restructuring the logic to use either latest or tag, but not both simultaneously. This would make the intent clearer and align better with the action's API design.

Copilot uses AI. Check for mistakes.
Comment on lines +66 to +67
TREEFMT_VERSION="v0.6.1"
LATEST="false"

Copilot AI Dec 15, 2025

Copy link

Choose a reason for hiding this comment

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

The hardcoded version "v0.6.1" for Windows platforms differs significantly from the latest release behavior used for other platforms. This creates inconsistency and makes maintenance harder. Consider adding a comment explaining why Windows requires this specific older version, or better yet, align all platforms to use the same versioning strategy if possible.

Suggested change
TREEFMT_VERSION="v0.6.1"
LATEST="false"
TREEFMT_VERSION=""
LATEST="true"

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