Fix GoReleaser deprecation warning (#2513)

## Changes

This warning surfaced in recent builds where GoReleaser >= v2.6 was
used.

https://goreleaser.com/deprecations/#archivesformat

## Why

See the "Run GoReleaser" step in this job:
https://github.com/databricks/cli/actions/runs/13680013259/job/38249650135

## Tests

Local run of GoReleaser no longer emits the warning.
This commit is contained in:
Pieter Noordhuis 2025-03-18 12:25:15 +01:00 committed by GitHub
parent 4e3ff2409c
commit d52a06f864
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 6 deletions

View File

@ -41,13 +41,13 @@ builds:
binary: databricks
archives:
- format: zip
- formats: ["zip"]
# Include version in archive only for release builds and not for snapshot builds.
# Snapshot archives must have a stable file name such that the artifacts in the nightly
# release are automatically overwritten. If the snapshot version is included in the
# file name then additional logic to clean up older builds would be needed.
name_template: 'databricks_cli_{{ if not .IsSnapshot }}{{ .Version }}_{{ end }}{{ .Os }}_{{ .Arch }}'
# Include version in archive only for release builds and not for snapshot builds.
# Snapshot archives must have a stable file name such that the artifacts in the nightly
# release are automatically overwritten. If the snapshot version is included in the
# file name then additional logic to clean up older builds would be needed.
name_template: 'databricks_cli_{{ if not .IsSnapshot }}{{ .Version }}_{{ end }}{{ .Os }}_{{ .Arch }}'
dockers:
- id: arm64