Skip to content

Using go-version: 1.20 breaks the build #380

@metalim

Description

@metalim

Description:
Using go-version: 1.20 breaks the build, as it uses Go 1.2 instead of 1.20

Action version:
v3 and v4

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:
1.20

Repro steps:

  • Create Go project with go.mod in it, with proper module name (in my case: github.com/metalim/gotest)
  • Add test file that imports that module
  • Confirm that go test ./... passes locally
  • Setup GH action with Go template
  • Change go-version for setup-go from 1.19 to 1.20
  • Observe build failing. Example: https://github.com/metalim/gotest/actions

Expected behavior:
Should use Go 1.20 or 1.20.4

Actual behavior:
Uses Go 1.2

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions