From 84e7edf98c8a1d0d74ca64d476def895ff3fb290 Mon Sep 17 00:00:00 2001 From: jo Date: Fri, 20 Mar 2026 17:33:36 +0000 Subject: [PATCH] fix: ensure go binaries have vcs information --- .github/workflows/release.yml | 2 ++ .goreleaser.yml | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ef00a9372..5fdfd7843 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,6 +14,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v6 + with: + fetch-depth: 0 - name: Login to DockerHub uses: docker/login-action@v4 diff --git a/.goreleaser.yml b/.goreleaser.yml index e6131acfa..2e4c8194b 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,10 +1,13 @@ version: 2 before: hooks: - - go mod tidy - ./scripts/completions.sh - go run ./scripts manpages +# https://goreleaser.com/cookbooks/build-go-modules/#building-go-modules +gomod: + proxy: true + builds: - <<: &build_defaults main: ./cmd/hcloud/main.go