From 5b6942c679c2c61ba519535ed0aa8838cd41c3b3 Mon Sep 17 00:00:00 2001 From: kylecarbs Date: Thu, 28 Apr 2022 14:36:02 +0000 Subject: [PATCH] fix: Update buildinfo package location in ldflags This was causing the version to not be injected! --- .goreleaser.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 64094d359bb6e..3cf980383d7ad 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -29,7 +29,7 @@ builds: - id: coder-slim dir: cmd/coder ldflags: - ["-s -w -X github.com/coder/coder/cli/buildinfo.tag={{ .Version }}"] + ["-s -w -X github.com/coder/coder/buildinfo.tag={{ .Version }}"] env: [CGO_ENABLED=0] goos: [darwin, linux, windows] goarch: [amd64] @@ -42,7 +42,7 @@ builds: dir: cmd/coder flags: [-tags=embed] ldflags: - ["-s -w -X github.com/coder/coder/cli/buildinfo.tag={{ .Version }}"] + ["-s -w -X github.com/coder/coder/buildinfo.tag={{ .Version }}"] env: [CGO_ENABLED=0] goos: [linux] goarch: [amd64, arm64] @@ -51,7 +51,7 @@ builds: dir: cmd/coder flags: [-tags=embed] ldflags: - ["-s -w -X github.com/coder/coder/cli/buildinfo.tag={{ .Version }}"] + ["-s -w -X github.com/coder/coder/buildinfo.tag={{ .Version }}"] env: [CGO_ENABLED=0] goos: [windows] goarch: [amd64, arm64] @@ -60,7 +60,7 @@ builds: dir: cmd/coder flags: [-tags=embed] ldflags: - ["-s -w -X github.com/coder/coder/cli/buildinfo.tag={{ .Version }}"] + ["-s -w -X github.com/coder/coder/buildinfo.tag={{ .Version }}"] env: [CGO_ENABLED=0] goos: [darwin] goarch: [amd64, arm64]