gohugoio / hugo

The world’s fastest framework for building websites.
https://gohugo.io
Apache License 2.0
74.73k stars 7.45k forks source link

Add FreeBSD release for extended version #5577

Open mildred opened 5 years ago

mildred commented 5 years ago

Some hosting providers are using FreeBSD, and having an extended release of Hugo available for FreeBSD amd64 would be great. Is there anything preventing that?

bep commented 5 years ago

Is there anything preventing that?

A fix for this would make it ... simpler ... https://github.com/goreleaser/goreleaser/issues/705 -- @caarlos0 Christmas wish ...

But even with that; the extended build requires the C tool chain of the target platform installed. Which is why I kind of closed my eyes and said "let's just do this" when I introduced LibSASS and CGO into the build chain. It is still worth it (SASS is really useful), but it makes stuff harder. Docker makes all of this doable, but I'm waiting for a fix to the above issue before I add more "extended builds" to the mix.

caarlos0 commented 5 years ago

@bep sorry this is taking too long.. new year's resolution is to do this haha

https://github.com/goreleaser/goreleaser/issues/705#issuecomment-450738025

gfairchild commented 5 years ago

I'd love for an extended FreeBSD release!

caarlos0 commented 5 years ago

multiple archives is already there, but other parts are still missing...

bep commented 5 years ago

@caarlos0 so something like this should work (I know the YAML is probably invalid ...)?

builds:
- binary: hugo
  id: hugo_extended
- binary: hugo
  id: hugo
archives:
  - binaries: ['hugo']
    name_template: 'hugo_{{.Version}}_{{.Os}}-{{.Arch}}'
  - binaries: ['hugo_extended']
    name_template: 'hugo_extended_{{.Version}}_{{.Os}}-{{.Arch}}'
caarlos0 commented 5 years ago

yes, just instead of binaries its builds and you use the build.id

https://goreleaser.com/customization/#Archive

still need to finish the releasing parts (which archives to release where), as for now it releases all archives, ex: https://github.com/caarlos0/test/blob/master/.goreleaser.4.yml generates https://github.com/caarlos0/test/releases/tag/v5.6.0

HighPriest commented 3 years ago

Any progress on this issue? I would love an extended hugo binary for a freebsd machine.

udanieli commented 2 years ago

You can install extended hugo from ports, the prebuilt package is fine:

pkg install gohugo

If you need it as a dependency, e.g. some specific version or a requirement in some bizarre wrapper (like this), you could need additional workarounds.

schrodyn commented 1 year ago

Any progress on this? This issue was opened in 2018... I can't use hugo unto there are FreeBSD releases for the extended version.

jmooring commented 1 year ago

I tested this a few days ago. Works great: https://gohugo.io/installation/bsd/#freebsd

As of today it installs the extended flavor of Hugo v0.104.3.

gfairchild commented 3 months ago

Any update on when this is likely to happen?

jmooring commented 3 months ago

Can you do this instead?

sudo pkg install gohugo

gfairchild commented 3 months ago

Can you do this instead?

sudo pkg install gohugo

Unfortunately not. I use https://www.nearlyfreespeech.net/ for hosting my super simple website, which Hugo is perfect for, and this comes at the cost of not having root privileges. I just snag the latest release from here, and I've got some scripts that build and deploy everything using my local version of the Hugo binary.