From 62c8f673241a635fde32016dc282fe7b0a57fdab Mon Sep 17 00:00:00 2001 From: Wilfried Roset Date: Fri, 10 Jan 2025 11:01:40 +0100 Subject: [PATCH 1/2] [goreleaser] Enable changelog Signed-off-by: Wilfried Roset --- .goreleaser.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 49b1271..945fbd9 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -52,4 +52,5 @@ release: # If you want to manually examine the release before its live, uncomment this line: draft: true changelog: - disable: true + disable: false + use: github From 060f5ed40563364dc66d1a5089e2f36ad3d11aa0 Mon Sep 17 00:00:00 2001 From: Wilfried Roset Date: Fri, 10 Jan 2025 11:01:51 +0100 Subject: [PATCH 2/2] [goreleaser] Lint file Signed-off-by: Wilfried Roset --- .goreleaser.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 945fbd9..86f6c3c 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -10,11 +10,11 @@ builds: # usage by users in CI/CD systems like Terraform Cloud where # they are unable to install libraries. - CGO_ENABLED=0 - mod_timestamp: '{{ .CommitTimestamp }}' + mod_timestamp: "{{ .CommitTimestamp }}" flags: - -trimpath ldflags: - - '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}' + - "-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}" goos: - freebsd - windows @@ -23,15 +23,15 @@ builds: goarch: - amd64 - arm64 - binary: '{{ .ProjectName }}_v{{ .Version }}' + binary: "{{ .ProjectName }}_v{{ .Version }}" archives: - format: zip - name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}' + name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}" checksum: extra_files: - - glob: 'terraform-registry-manifest.json' - name_template: '{{ .ProjectName }}_{{ .Version }}_manifest.json' - name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS' + - glob: "terraform-registry-manifest.json" + name_template: "{{ .ProjectName }}_{{ .Version }}_manifest.json" + name_template: "{{ .ProjectName }}_{{ .Version }}_SHA256SUMS" algorithm: sha256 signs: - artifacts: checksum @@ -40,15 +40,15 @@ signs: # need to pass the batch flag to indicate its not interactive. - "--batch" - "--local-user" - - "{{ .Env.GPG_FINGERPRINT }}" # set this environment variable for your signing key + - "{{ .Env.GPG_FINGERPRINT }}" # set this environment variable for your signing key - "--output" - "${signature}" - "--detach-sign" - "${artifact}" release: extra_files: - - glob: 'terraform-registry-manifest.json' - name_template: '{{ .ProjectName }}_{{ .Version }}_manifest.json' + - glob: "terraform-registry-manifest.json" + name_template: "{{ .ProjectName }}_{{ .Version }}_manifest.json" # If you want to manually examine the release before its live, uncomment this line: draft: true changelog: