Skip to content

GoTool: support reading Go version from go.mod file #17848

@ItalyPaleAle

Description

@ItalyPaleAle

Required Information

Question, Bug, or Feature?
Type: Feature

Environment

  • Server - Azure pipelines

  • Agent - Hosted (Ubuntu)

Issue Description

The GitHub Action to install Go has a very nifty feature that allows detecting the version of Go to install from a go.mod file: https://github.com/actions/setup-go#getting-go-version-from-the-gomod-file

This is incredibly useful to us (Dapr) as we want to make sure that every branch of our project is built with the correct version of Go. For example, our current development branch requires Go 1.20, but the last release was built with Go 1.19.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions