From a646c99e229d0994c3d9ea2e8c2b7ba9ed97d558 Mon Sep 17 00:00:00 2001 From: Antonis Kalipetis Date: Wed, 7 May 2025 23:58:09 +0300 Subject: [PATCH 1/2] fix(goreleaser): fix version substitution for releases --- .goreleaser.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 84c1df1f..a8fca93f 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -42,10 +42,10 @@ builds: - -s -w - -X "github.com/platformsh/cli/internal/legacy.PHPVersion={{.Env.PHP_VERSION}}" - -X "github.com/platformsh/cli/internal/legacy.LegacyCLIVersion={{.Env.LEGACY_CLI_VERSION}}" - - -X "github.com/platformsh/cli/commands.version={{.Version}}" - - -X "github.com/platformsh/cli/commands.commit={{.Commit}}" - - -X "github.com/platformsh/cli/commands.date={{.Date}}" - - -X "github.com/platformsh/cli/commands.builtBy=goreleaser" + - -X "github.com/platformsh/cli/internal/config.Version={{.Version}}" + - -X "github.com/platformsh/cli/internal/config.Commit={{.Commit}}" + - -X "github.com/platformsh/cli/internal/config.Date={{.Date}}" + - -X "github.com/platformsh/cli/internal/config.BuiltBy=goreleaser" main: ./cmd/platform - binary: upsun @@ -68,10 +68,10 @@ builds: - -s -w - -X "github.com/platformsh/cli/internal/legacy.PHPVersion={{.Env.PHP_VERSION}}" - -X "github.com/platformsh/cli/internal/legacy.LegacyCLIVersion={{.Env.LEGACY_CLI_VERSION}}" - - -X "github.com/platformsh/cli/commands.version={{.Version}}" - - -X "github.com/platformsh/cli/commands.commit={{.Commit}}" - - -X "github.com/platformsh/cli/commands.date={{.Date}}" - - -X "github.com/platformsh/cli/commands.builtBy=goreleaser" + - -X "github.com/platformsh/cli/internal/config.Version={{.Version}}" + - -X "github.com/platformsh/cli/internal/config.Commit={{.Commit}}" + - -X "github.com/platformsh/cli/internal/config.Date={{.Date}}" + - -X "github.com/platformsh/cli/internal/config.BuiltBy=goreleaser" main: ./cmd/platform - binary: upsun id: upsun-macos From 35ccca75d22ea5ebdb0f28f5bd14b86e0de9dd35 Mon Sep 17 00:00:00 2001 From: Antonis Kalipetis Date: Mon, 12 May 2025 08:56:17 +0300 Subject: [PATCH 2/2] fix(goreleaser): fix varriables for Upsun on macos --- .goreleaser.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index a8fca93f..2caea993 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -89,10 +89,10 @@ builds: - -s -w - -X "github.com/platformsh/cli/internal/legacy.PHPVersion={{.Env.PHP_VERSION}}" - -X "github.com/platformsh/cli/internal/legacy.LegacyCLIVersion={{.Env.LEGACY_CLI_VERSION}}" - - -X "github.com/platformsh/cli/commands.version={{.Version}}" - - -X "github.com/platformsh/cli/commands.commit={{.Commit}}" - - -X "github.com/platformsh/cli/commands.date={{.Date}}" - - -X "github.com/platformsh/cli/commands.builtBy=goreleaser" + - -X "github.com/platformsh/cli/internal/config.Version={{.Version}}" + - -X "github.com/platformsh/cli/internal/config.Commit={{.Commit}}" + - -X "github.com/platformsh/cli/internal/config.Date={{.Date}}" + - -X "github.com/platformsh/cli/internal/config.BuiltBy=goreleaser" main: ./cmd/platform checksum: