Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-09-15 12:17:51 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-09-15 13:26:22 +0300
commit0bd79d30c10167ef4fa0c7cead05020fe488fb71 (patch)
tree6d794e2ef3b77360b4e741352e97ba2c8e71a673
parent8e77bcc930bc8a6b0696a8c83369bd16e23b1833 (diff)
Use standard GOOS/GOARCH values in release archives
But create aliases with old filenames for the 2 most downloaded archives (to avoid Netlify etc. breaking). Fixes #10073
-rw-r--r--.circleci/config.yml4
-rw-r--r--hugoreleaser.toml22
2 files changed, 12 insertions, 14 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 2cee047f2..60cfd4278 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -4,7 +4,7 @@ parameters:
defaults: &defaults
resource_class: large
docker:
- - image: bepsays/ci-hugoreleaser:1.21900.20002
+ - image: bepsays/ci-hugoreleaser:1.21900.20003
environment: &buildenv
GOMODCACHE: /root/project/gomodcache
version: 2
@@ -60,7 +60,7 @@ jobs:
environment:
<<: [*buildenv]
docker:
- - image: bepsays/ci-hugoreleaser-linux-arm64:1.21900.20002
+ - image: bepsays/ci-hugoreleaser-linux-arm64:1.21900.20003
steps:
- *restore-cache
- &attach-workspace
diff --git a/hugoreleaser.toml b/hugoreleaser.toml
index 93266f97e..02c6f7e92 100644
--- a/hugoreleaser.toml
+++ b/hugoreleaser.toml
@@ -1,5 +1,15 @@
project = "hugo"
+# In Hugo v0.103.0 we removed the archive name replacements (e.g. amd64 => 64bit).
+# Using standard GOOS/GOARCH values makes it easier for scripts out there,
+# but to prevent breakage in Netlify etc. that has adopted to the old names,
+# we create aliases for the most common variants.
+# According to download numbers from v0.101.0, these are by a good margin the two most popular:
+# hugo_extended_0.101.0_Linux-64bit.tar.gz Downloaded 129,016 times
+# hugo_0.101.0_Linux-64bit.tar.gz Downloaded 87,846 times
+# This replacement will create 2 extra alias archives.
+archive_alias_replacements = { "linux-amd64.tar.gz" = "Linux-64bit.tar.gz" }
+
[go_settings]
go_proxy = "https://proxy.golang.org"
go_exe = "go"
@@ -19,18 +29,6 @@ project = "hugo"
[archive_settings.type]
format = "tar.gz"
extension = ".tar.gz"
- [archive_settings.replacements]
- amd64 = "64bit"
- 386 = "32bit"
- arm = "ARM"
- arm64 = "ARM64"
- darwin = "macOS"
- linux = "Linux"
- windows = "Windows"
- openbsd = "OpenBSD"
- netbsd = "NetBSD"
- freebsd = "FreeBSD"
- dragonfly = "DragonFlyBSD"
[release_settings]
name = "${HUGORELEASER_TAG}"