Skip to content

Commit 3858c9e

Browse files
committed
[internal] Ensure we set the version correctly in the ldflag
Fixes: #13 Previously, we assumed the go module path had /provider on the end but it didn't and therefore we were defaulting to the v0.0.1
1 parent efc5b9b commit 3858c9e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ builds:
2424
- windows
2525
- linux
2626
ldflags:
27-
- -X github.com/pulumi/pulumi-kubernetes-ingress-nginx/provider/pkg/version.Version={{.Tag }}
27+
- -X github.com/pulumi/pulumi-kubernetes-ingress-nginx/pkg/version.Version={{.Tag }}
2828
main: ./cmd/pulumi-resource-kubernetes-ingress-nginx/
2929
changelog:
3030
skip: true

provider/pkg/version/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
package version
1616

1717
// Version is initialized by the Go linker to contain the semver of this build.
18-
var Version string = "0.0.1"
18+
var Version string

0 commit comments

Comments
 (0)