Skip to content

Use go.mod for determing go version used in Github Actions #480

Open
@KevFan

Description

@KevFan

Description

It is possible to use the Go version from the go.mod file with the actions/setup-go@v5 step in our GitHub Actions workflows:

- name: Setup Go
  uses: actions/setup-go@v5
  with:
    go-version-file: go.mod

By always using the Go version specified in go.mod, we will no longer need to manually update the Go version in our GitHub Actions when the project’s Go version changes.

The goal of this issue is to update all workflows using actions/setup-go to retrieve the Go version from go.mod.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions