-
Notifications
You must be signed in to change notification settings - Fork 634
support rc version such as go 1.26rc1
#702
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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 adds support for Go's RC version format (e.g., go 1.26rc1) by introducing a normalizeVersionSpec() function that converts Go-style prerelease versions to semver format before matching.
Key Changes:
- Added
normalizeVersionSpec()function to convert Go-style prerelease notation (e.g.,1.14rc1) to semver format (e.g.,1.14.0-rc.1) - Updated
findMatch()to normalize version specs before matching against available Go versions - Added integration tests to verify Go-style RC version resolution
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| src/installer.ts | Implements normalizeVersionSpec() function and integrates it into the version matching logic |
| dist/setup/index.js | Compiled JavaScript output reflecting the TypeScript changes |
| tests/setup-go.test.ts | Adds integration tests for Go-style RC version matching with and without range operators |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
1b06a08 to
f63b7ec
Compare
f63b7ec to
f5562dd
Compare
There was a problem hiding this comment.
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 3 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Description:
actions/go-setupcannot installgo1.26rc1:https://github.com/sqldef/sqldef/actions/runs/20521055234/job/58956343695?pr=1066
This PR fixes it by introducing
normalizeVersionSpec().With this PR, setup-go can install
1.26rc1: https://github.com/sqldef/sqldef/actions/runs/20523447714/job/58962500134?pr=1066Related issue:
(none)
Check list: