From 223fb05a5b896c32bc2872e8f334e52db9a6acf4 Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Tue, 18 Mar 2025 16:14:36 +0100 Subject: [PATCH] Include tarballs in releases (#2515) ## Changes Builds on #2513 to support multiple archive formats. ## Why See #2351 and #1296. Instead of producing tarballs only for a subset of operating systems, I figured we should produce them for every operating system/architecture combination to avoid unnecessary conditionals when writing platform-independent installers (for example, the `setup-cli` installer scripts). ## Tests I manually confirmed that GoReleaser now produces both ZIP files and tarballs: ``` % ls -1 dist/*.{zip,tar.gz} dist/databricks_cli_darwin_amd64.tar.gz dist/databricks_cli_darwin_amd64.zip dist/databricks_cli_darwin_arm64.tar.gz dist/databricks_cli_darwin_arm64.zip dist/databricks_cli_linux_amd64.tar.gz dist/databricks_cli_linux_amd64.zip dist/databricks_cli_linux_arm64.tar.gz dist/databricks_cli_linux_arm64.zip dist/databricks_cli_windows_amd64.tar.gz dist/databricks_cli_windows_amd64.zip dist/databricks_cli_windows_arm64.tar.gz dist/databricks_cli_windows_arm64.zip ``` --- .goreleaser.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 2f49ef94d..d2f4f318c 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -41,7 +41,7 @@ builds: binary: databricks archives: - - formats: ["zip"] + - formats: ["zip", "tar.gz"] # 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