Skip to content
Latchkey

GoReleaser "only configurations files on version: 2 are supported" in CI

GoReleaser v2 requires the config to declare version: 2 at the top level. A config without it (or with an older schema) is rejected until you add the version key and migrate renamed fields.

What this error means

GoReleaser fails at load with "only configurations files on version: 2 are supported, yours is version: 0, please update your configuration".

Terminal
⨯ only configurations files on version: 2 are supported, yours is version: 0,
  please update your configuration

Common causes

Missing version: 2 declaration

A config that predates v2 has no version key, so GoReleaser v2 treats it as version 0 and refuses it.

Renamed fields not yet migrated

Some keys changed in v2 (for example archives.format became archives.formats), and the old shape no longer parses.

How to fix it

Add version: 2 and migrate

  1. Add version: 2 as the first line of .goreleaser.yaml.
  2. Run goreleaser check to find any renamed or removed fields.
  3. Update the flagged keys to their v2 names.
.goreleaser.yaml
version: 2

builds:
  - env: [CGO_ENABLED=0]

Pin the action to a compatible major

If you are not ready to migrate, pin the GoReleaser version so the schema stays stable, then migrate deliberately.

.github/workflows/release.yml
- uses: goreleaser/goreleaser-action@v6
  with:
    version: '~> v2'
    args: release --clean

How to prevent it

  • Declare version: 2 explicitly in every config.
  • Run goreleaser check after upgrading GoReleaser.
  • Pin the GoReleaser major version in the action.

Related guides

Tired of flaky CI? Latchkey auto-heals failed jobs and retries them for you. Start free →