r-lib / hugodown

Make websites with hugo and RMarkdown
https://hugodown.r-lib.org
Other
166 stars 24 forks source link

Mac releases for hugo seem to be at `darwin-universal` now #113

Open DavisVaughan opened 1 year ago

DavisVaughan commented 1 year ago
> hugodown::hugo_install()
Finding release
Error in `hugo_release()` at hugodown/R/hugo-install.R:22:2:
! Can't find release asset with name 'hugo_extended_0.112.7_macOS-64bit.tar.gz'
Run `rlang::last_trace()` to see where the error occurred.

i.e. note hugo_extended_0.112.7_darwin-universal.tar.gz at https://github.com/gohugoio/hugo/releases/tag/v0.112.7

DavisVaughan commented 1 year ago

Seems like it was finalized to darwin-universal in v0.103 (they did a few other things like macOS-universal before that too) https://github.com/gohugoio/hugo/releases/tag/v0.103.0

DavisVaughan commented 1 year ago

Actually it seems like they changed quite a few of the naming schemes here? windows and linux are no longer capitalized as well, and possibly other differences, not sure

remlapmot commented 1 year ago

Just to point out that the function in blogdown, blogdown::install_hugo(), has been updated to accommodate the Hugo renaming.

maelle commented 1 year ago

slightly related and good to know: https://yihui.org/en/2023/05/hugo-112/ :sweat_smile: