Skip to content

Commit

Permalink
Fix release missing manifest file in checksum
Browse files Browse the repository at this point in the history
Also fix build flag for setting version
  • Loading branch information
alexhung committed Jul 25, 2024
1 parent 2a293cd commit 6f9b389
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ builds:
flags:
- -trimpath
ldflags:
- '-s -w -X github.com/jfrog/terraform-provider-project/pkg/project/provider.Version={{.Version}}'
- '-s -w -X github.com/jfrog/terraform-provider-project/pkg/project/project.Version={{.Version}}'
goos:
- freebsd
- windows
Expand All @@ -35,6 +35,9 @@ archives:
- format: zip
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'
algorithm: sha256
signs:
Expand Down
4 changes: 2 additions & 2 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ clean_tfc:
rm -fR dist tfc-testing/terraform.d/ tfc-testing/.terraform tfc-testing/terraform.tfstate* tfc-testing/.terraform.lock.hcl

release:
@git tag ${NEXT_VERSION} && git push --mirror
@echo "Pushed ${NEXT_VERSION}"
@git tag v${NEXT_VERSION} && git push --mirror
@echo "Pushed v${NEXT_VERSION}"
GOPROXY=https://proxy.golang.org GO111MODULE=on go get github.com/jfrog/terraform-provider-${PRODUCT}@v${NEXT_VERSION}
@echo "Updated pkg cache"

Expand Down

0 comments on commit 6f9b389

Please sign in to comment.