Skip to content

Commit 223fb05

Browse files
authored
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 ```
1 parent 976391c commit 223fb05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.goreleaser.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ builds:
4141
binary: databricks
4242

4343
archives:
44-
- formats: ["zip"]
44+
- formats: ["zip", "tar.gz"]
4545

4646
# Include version in archive only for release builds and not for snapshot builds.
4747
# Snapshot archives must have a stable file name such that the artifacts in the nightly

0 commit comments

Comments
 (0)