Skip to content

The RC version in the go.mod file cannot be retrieved #525

Description

@sonatard

Description:

RC is not included in the scope of the regular expression

const match = contents.match(/^go (\d+(\.\d+)*)/m);

Action version:
Specify the action version

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:
Go 1.24rc1

Repro steps:

// go.mod
go 1.24rc1
    - uses: actions/setup-go@v5
      with:
        go-version-file: ./go.mod
        cache: false

Expected behavior:

Setup go version spec 1.24rc1
Attempting to download 1.24rc1...
matching 1.24rc1...

Actual behavior:

Setup go version spec 1.24
Attempting to download 1.24...
matching 1.24...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestNew feature or request to improve the current logic

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions