From 1baec2aa1db6454e4f1d5a1b46f598cfa4ac8293 Mon Sep 17 00:00:00 2001 From: Johannes Liebermann Date: Thu, 4 Mar 2021 14:32:31 +0200 Subject: [PATCH 1/2] Include a "v" in goreleaser version strings For consistency with the Git tag, we should always prepend a "v" in front of the Lokomotive version. --- .goreleaser.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 93e278975..c64c2cac3 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -4,7 +4,7 @@ builds: - CGO_ENABLED=0 - GO111MODULE=on ldflags: - - -X github.com/kinvolk/lokomotive/pkg/version.Version={{.Version}} + - -X github.com/kinvolk/lokomotive/pkg/version.Version={{.Tag}} - -extldflags '-static' flags: - -buildmode=exe @@ -35,3 +35,7 @@ release: archives: - wrap_in_directory: true + name_template: "{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}" + +checksum: + name_template: "{{ .ProjectName }}_{{ .Tag }}_checksums.txt" From 33ee13526fbad7297ac4bfec532aa2d2929b89dc Mon Sep 17 00:00:00 2001 From: Johannes Liebermann Date: Thu, 4 Mar 2021 15:22:12 +0200 Subject: [PATCH 2/2] Update URIs in quickstart guides We've added a "v" in front of the Lokomotive version, which affects GitHub URIs. --- docs/quickstarts/packet.md | 4 ++-- docs/quickstarts/tinkerbell.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/quickstarts/packet.md b/docs/quickstarts/packet.md index c7322daae..b6970963c 100644 --- a/docs/quickstarts/packet.md +++ b/docs/quickstarts/packet.md @@ -70,8 +70,8 @@ Download the latest `lokoctl` binary for your platform: ```console export os=linux # For macOS, use `os=darwin`. -export release=$(curl -s https://api.github.com/repos/kinvolk/lokomotive/releases | jq -r '.[0].name' | tr -d v) -curl -LO "https://github.com/kinvolk/lokomotive/releases/download/v${release}/lokoctl_${release}_${os}_amd64.tar.gz" +export release=$(curl -s https://api.github.com/repos/kinvolk/lokomotive/releases | jq -r '.[0].name') +curl -LO "https://github.com/kinvolk/lokomotive/releases/download/${release}/lokoctl_${release}_${os}_amd64.tar.gz" ``` Extract the binary and copy it to a place under your `$PATH`: diff --git a/docs/quickstarts/tinkerbell.md b/docs/quickstarts/tinkerbell.md index a97dfbe79..ac9d70066 100644 --- a/docs/quickstarts/tinkerbell.md +++ b/docs/quickstarts/tinkerbell.md @@ -55,8 +55,8 @@ Download the latest `lokoctl` binary for your platform: ```console export os=linux # For macOS, use `os=darwin`. -export release=$(curl -s https://api.github.com/repos/kinvolk/lokomotive/releases | jq -r '.[0].name' | tr -d v) -curl -LO "https://github.com/kinvolk/lokomotive/releases/download/v${release}/lokoctl_${release}_${os}_amd64.tar.gz" +export release=$(curl -s https://api.github.com/repos/kinvolk/lokomotive/releases | jq -r '.[0].name') +curl -LO "https://github.com/kinvolk/lokomotive/releases/download/${release}/lokoctl_${release}_${os}_amd64.tar.gz" ``` Extract the binary and copy it to a place under your `$PATH`: