Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Upgrade default version of hugo #93

Closed
fool opened this issue Oct 19, 2017 · 9 comments
Closed

Upgrade default version of hugo #93

fool opened this issue Oct 19, 2017 · 9 comments
Assignees
Labels
type: feature code contributing to the implementation of a feature and/or user facing functionality

Comments

@fool
Copy link
Contributor

fool commented Oct 19, 2017

Our current default version of hugo is quite old - almost halfway back in the version history (v0.17 vs current v0.30.2).

Could we do the thing we've done with node wherein we pin the old version for old sites and install a newer version to use by default when someone uses a build command hugo on a new site?

It would be a better user experience as very few new customers showing up today use old hugo.

This would need an associated migration in the database for existing repo settings, and some logic in the build image to respect it, but this seems like the sanest place to track all the work.

Request by @bep and his posse of thousands of hugo users :)

@davidpelayo
Copy link

I agree this must be updated asap. I was about to use netlify in my personal site to automate the process and simplify it, but since the version is tool old, I'll hold this for now.

@rybit
Copy link
Member

rybit commented Nov 30, 2017

We will be updating this, but hugo will probably move faster than our update cycle. Because we don't want to be moving the cheese on a lot of people that aren't being specific about the version that they're using, we have to be careful about updating versions.

I'd recommend setting the HUGO_VERSION as was recommended in your other PR. :)

@inwardmovement
Copy link

inwardmovement commented Feb 11, 2018

I'm not sure to understand: it's possible to force Netlify to use the latest Hugo version even if it's not an available version in the Netlify’s Docker file, simply by writing the version we want in netlify.toml ?

@bep
Copy link

bep commented Feb 11, 2018

@inwardmovement
Copy link

Yes that is what raised my question, because in Hugo docs it's said:

Setting the build command to hugo will build your site according to the current default Hugo version used by Netlify. You can see the full list of available Hugo versions in Netlify’s Docker file.

which made me think we are bound to Netlify's Hugo version. This was preventing me from using Netlify as I would like to benefit the latest Hugo versions, but it's awesome that we can use whatever version we want, thanks :)

Maybe the Hugo docs should be clarified in regard to this, I can try a PR if you want @gohugoio

@bep
Copy link

bep commented Feb 11, 2018

Maybe the Hugo docs should be clarified in regard to this, I can try a PR if you want @gohugoio

That would be most welcome.

@fool
Copy link
Contributor Author

fool commented Feb 11, 2018

@inwardmovement I'd suggest referring to this blog post that describes in depth what hugo versions are available on netlify and the two ways you can configure one:

https://www.netlify.com/blog/2017/04/11/netlify-plus-hugo-0.20-and-beyond/

@inwardmovement
Copy link

Thanks @fool I added the reference in my PR

@bcomnes
Copy link
Contributor

bcomnes commented Mar 19, 2019

Default is 0.54 extended in the xenial image. This should be done now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: feature code contributing to the implementation of a feature and/or user facing functionality
Projects
None yet
Development

No branches or pull requests

7 participants