Hugo 0.43 Released


#21

I mean, isn’t there a way to include two differently named, but similarly versioned builds? (sorry, Homebrew novice here)


#22

#23

@FelicianoTech just wondering, is the CircleCI docker build using the extended version? I haven’t yet wrapped my head around how to use Hugo Pipes locally but be able to not use it when building in CircleCI.


#24

Is using what will be the new build image of Hugo (on CircleCI; I had to split it in two today for other reasons).

But the docker image it points to is set to build extended to MacOS, Windows and Linux.

See https://github.com/gohugoio/hugo/blob/master/goreleaser-extended.yml

For how the build is executed inside that container.

The above is where my Saturday went. It wasn’t too hard once I understood it, but I struggled for hours with idiot stuff.


#25

Thanks @bep for the release and the continual hard work.

The standard cibuilds/hugo:latest docker, aka the super-simple just-works version that I’m using, does not appear to be the extended variant.

I added a hugo env command to my circleci config.yml and it proves it’s just the normal one. I’ll see if I can figure out what you’re doing there.


#26

Ah, OK. This is @FelicianoTech area I guess.

I’m not sure if he builds from source or not.

But the Docker image I’m talking about, which enables building the extended version from Docker is here:


#27

@bep, right, I see. I’m ashamed to say the first time I ever touched anything Docker was initializing this CircleCI build. It appears CircleCI will let me use whatever Docker image, so, it might be possible to just pull yours…


#28

This is very exciting. I want to try it out! But I’m afraid I’m not following at all.
I’m on a mac so I just did brew upgrade hugo and I got this version:

Hugo Static Site Generator v0.43 darwin/amd64 BuildDate: unknown

When I tried to start hugo, I got this message:

Building sites … ERROR 2018/07/09 17:06:15 error: failed to transform resource: failed to transform "scss/main.scss" (text/x-scss): this feature is not available in your current Hugo version
Total in 866 ms
Error: Error building site: logged 1 error(s)

What is the missing step to install the extended version with homebrew?


#29

The brew version does not have that functionality. Do hugo env to see if it’s extended or not.
Meanwhile, download the binary and use that. I put mine in $GOPATH/bin.


#30

The Docker image I make cibuilds/hugo pulls the amd64 Linux binary.

I thought it would be the extended version but apparently not. I will re-publish the image in a few hours to make sure it’s using the extended binary.


#31

oh, wow, thanks!


#32

Done. The cibuilds/hugo Docker image now uses the extended Hugo binary. Had to install an extra library but it’s all working now.

@anthonyfok Hey. Would we be able to get the extended release into the snap? It auto-upgraded to v0.43 but it’s the standard binary.


#33

Thanks for the quick response and work @FelicianoTech, this is working correctly.


#34

Just wanted to report that my update to Hugo 0.43 was a bit time consuming, but overall smooth. It was time consuming as I moved from external cache busting to using fingerprint, and then I simply moved the to-be cache busted and minified stuff from static to assets.

Building of Hugo extended also went smooth on my system (RHEL 6.6). Though, I don’t know SASS, so I won’t be using that build.

@bep Just to note though, the hugo extended in Releases won’t work on my system as the glibc on RHEL 6.6 is too old… So the only solution for such systems is to build locally (in case someone opens an issue saying that the glibc required by the Hugo extended from Releases doesn’t link).


#35

Hi @FelicianoTech, please see discussions at

In a nutshell: It is forthcoming. The Snapcraft experts recommend setting extended as a snap track, which has been requested and currently under review / voting period. About a week from now, you’ll be able to fetch the extended version via

snap install hugo --channel=extended

For the time being, if you would like to try an extended hugo snap, try snap install hugo-extended --edge, with the following caveats:

  • The executable is named hugo-extended unless you run snap alias hugo-extended hugo
  • The version number is 0.43-DEV/extended
  • It was an experiment and will be removed within the week

#36

Just reporting using brew on Mac OS: It is not the extended one ( I have Xcode)

$ hugo version
Hugo Static Site Generator v0.43 darwin/amd64 BuildDate: unknown

It went thru a whole rebuild from source process

Log details

==> Upgrading 1 outdated package, with result:
hugo 0.39 -> 0.43
==> Upgrading hugo
==> Downloading /bottles/hugo-0.43.high_sierra.bottle.tar.gz
curl: (3) malformed
Error: Failed to download resource “hugo”
Download failed: /bottles/hugo-0.43.high_sierra.bottle.tar.gz
Warning: Bottle installation failed: building from source.
==> Installing dependencies for hugo: go, dep
==> Installing hugo dependency: go
==> Downloading /bottles/go-1.10.3.high_sierra.bottle.tar.gz
curl: (3) malformed
Error: Failed to download resource “go”
Download failed: /bottles/go-1.10.3.high_sierra.bottle.tar.gz
Warning: Bottle installation failed: building from source.
==> Downloading https://dl.google.com/go/go1.10.3.src.tar.gz
######################################################################## 100.0%
==> Downloading https://github.com/golang/go/commit/1a92cdbfc10e0c66f2e015264a39159c055a5c15.patch?full_index=1
######################################################################## 100.0%
==> Patching
==> Applying 1a92cdbfc10e0c66f2e015264a39159c055a5c15.patch
patching file src/cmd/link/internal/ld/macho.go
patching file src/cmd/link/internal/ld/macho_combine_dwarf.go
Hunk #1 succeeded at 221 (offset -14 lines).
==> Downloading https://storage.googleapis.com/golang/go1.7.darwin-amd64.tar.gz
######################################################################## 100.0%
==> ./make.bash --no-clean
==> /usr/local/Cellar/go/1.10.3/bin/go install -race std
==> Cloning https://go.googlesource.com/tools.git
Cloning into ‘/Users/didiergeorgieff/Library/Caches/Homebrew/go–gotools–git’…
remote: Sending approximately 17.82 MiB …
remote: Counting objects: 20, done
remote: Finding sources: 100% (20/20)
remote: Total 19985 (delta 13207), reused 19976 (delta 13207)
Receiving objects: 100% (19985/19985), 17.77 MiB | 382.00 KiB/s, done.
Resolving deltas: 100% (13207/13207), done.
==> Checking out branch release-branch.go1.10
Already on ‘release-branch.go1.10’
Your branch is up to date with ‘origin/release-branch.go1.10’.
==> go build
==> Caveats
A valid GOPATH is required to use the go get command.
If $GOPATH is not specified, $HOME/go will be used by default:
https://golang.org/doc/code.html#GOPATH

You may wish to add the GOROOT-based install location to your PATH:
export PATH=$PATH:/usr/local/opt/go/libexec/bin
==> Summary
:beer: /usr/local/Cellar/go/1.10.3: 8,172 files, 336.8MB, built in 6 minutes 59 seconds
==> Installing hugo dependency: dep
==> Downloading /bottles/dep-0.4.1_1.high_sierra.bottle.tar.gz
curl: (3) malformed
Error: Failed to download resource “dep”
Download failed: /bottles/dep-0.4.1_1.high_sierra.bottle.tar.gz
Warning: Bottle installation failed: building from source.
==> Cloning https://github.com/golang/dep.git
Cloning into ‘/Users/didiergeorgieff/Library/Caches/Homebrew/dep–git’…
remote: Counting objects: 1128, done.
remote: Compressing objects: 100% (821/821), done.
remote: Total 1128 (delta 293), reused 817 (delta 217), pack-reused 0
Receiving objects: 100% (1128/1128), 4.62 MiB | 507.00 KiB/s, done.
Resolving deltas: 100% (293/293), done.
Note: checking out ‘37d9ea0ac16f0e0a05afc3b60e1ac8c364b6c329’.

You are in ‘detached HEAD’ state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

git checkout -b

==> Checking out tag v0.4.1
HEAD is now at 37d9ea0… dep: Sharpen dep prune warning message
==> hack/build-all.bash
:beer: /usr/local/Cellar/dep/0.4.1_1: 7 files, 8.7MB, built in 29 seconds
==> Downloading https://github.com/gohugoio/hugo/archive/v0.43.tar.gz
==> Downloading from https://codeload.github.com/gohugoio/hugo/tar.gz/v0.43
######################################################################## 100.0%
==> dep ensure -vendor-only
==> go build -o /usr/local/Cellar/hugo/0.43/bin/hugo main.go
==> /usr/local/Cellar/hugo/0.43/bin/hugo gen autocomplete --completionfile=hugo.sh
==> /usr/local/Cellar/hugo/0.43/bin/hugo gen man
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
==> Summary
:beer: /usr/local/Cellar/hugo/0.43: 32 files, 29.5MB, built in 4 minutes 39 seconds


#37

Debian Package - Hugo .deb package for Debian and Ubuntu (built with “extended” Sass/SCSS support):


#38

Thanks for info about the Homebrew version. Should we expect an extended version in Homebrew anytime soon? If not, could someone link a resource that explains how to run extended version on macOS.

Thanks for info in advance.


#39

As I mentioned above download the macos extended binary and use that. I put mine in $GOPATH/bin.


#40

Thanks @RickCogley. Any info about:

Should we expect an extended version in Homebrew anytime soon?