Skip to content

Commit e153201

Browse files
mattdotgithub-actions[bot]
andauthored
Refactor .goreleaser.yml to include branch information in ldflags (#466)
Co-authored-by: github-actions[bot] <tfmod442916@users.noreply.github.com>
1 parent f27373e commit e153201

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ builds:
1414
flags:
1515
- -trimpath
1616
ldflags:
17-
- '-s -w -X github.com/microsoft/terraform-provider-power-platform/common.ProviderVersion={{ .Version }} -X github.com/microsoft/terraform-provider-power-platform/common.Commit={{.Commit}}' -X github.com/microsoft/terraform-provider-power-platform/common.Branch=$(git rev-parse --abbrev-ref HEAD)'
17+
- '-s -w -X github.com/microsoft/terraform-provider-power-platform/common.ProviderVersion={{ .Version }} -X github.com/microsoft/terraform-provider-power-platform/common.Commit={{.Commit}} -X github.com/microsoft/terraform-provider-power-platform/common.Branch={{ .Branch }}'
1818

1919
goos:
2020
- freebsd

0 commit comments

Comments
 (0)