diff --git a/.goreleaser.yml b/.goreleaser.yml index b37a511..66f28f7 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -15,6 +15,7 @@ builds: dir: . env: - CGO_ENABLED=0 + - GO111MODULE=on goos: - linux - windows @@ -23,19 +24,16 @@ builds: - amd64 - arm - arm64 + - 386 + ldflags: -s -w -X github.com/cloudskiff/driftctl/build.env=release -X github.com/sundowndev/goreleaser-template.version={{.Version}} archives: - - replacements: - darwin: Darwin - linux: Linux - windows: Windows - 386: i386 - amd64: x86_64 - name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}' + - name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}' format: binary files: - none* checksum: - name_template: '{{ .ProjectName }}_checksums.txt' + name_template: '{{ .ProjectName }}_SHA256SUMS.txt' + algorithm: sha256 snapshot: name_template: "{{ .Tag }}-next" changelog: diff --git a/main.go b/main.go index 24e3df4..f980286 100644 --- a/main.go +++ b/main.go @@ -4,6 +4,8 @@ import ( "fmt" ) +const version = "dev" + func main() { - fmt.Println("Hello, world!", "v0.1.2 release", "v0.2.0 release") + fmt.Println("Hello, world!", version) }