Re: [Bloat] macOS Catalina causes 'hugo serve' to segfault...

2020-02-22 Thread Toke Høiland-Jørgensen
Rich Brown  writes:

>> On Feb 21, 2020, at 6:20 AM, Toke Høiland-Jørgensen  wrote:
>> 
>> Looking at that thread, I don't really get the feeling that they're any
>> more helpful now :/
>
> I can second that thought. 
>
>> As an alternative, maybe it'll be possible to build a new version of the
>> 0.16 Hugo binary with a newer Go runtime? I very much doubt that the
>> segfault is because of the Hugo code itself...
>
> My thought exactly. In case anyone has a burning urge to get
> distracted on this, I'll take a whack at this over the weekend. (After
> all, it's my computer that's busted...)

In case anyone else wants to build the old version of Hugo, we managed
to resolve this, and with a recent version of Go, the following command
should now get you a working 'hugo' binary in your $GOPATH/bin:

go get github.com/tohojo/hugo

-Toke
___
Bloat mailing list
Bloat@lists.bufferbloat.net
https://lists.bufferbloat.net/listinfo/bloat


Re: [Bloat] macOS Catalina causes 'hugo serve' to segfault...

2020-02-22 Thread Rich Brown

> On Feb 22, 2020, at 7:26 AM, Toke Høiland-Jørgensen  wrote:

...

> In case anyone else wants to build the old version of Hugo, we managed
> to resolve this, and with a recent version of Go, the following command
> should now get you a working 'hugo' binary in your $GOPATH/bin:
> 
> go get github.com/tohojo/hugo
> 
> -Toke

And for posterity (and so I can find it by searching the archives of the 
list...), here's how I got it building on my macOS Catalina machine:

* Upgrade to latest Go - https://golang.org/dl/ then double-click the .pkg file

* Ensure that there are enough files: see 
https://medium.com/mindful-technology/too-many-open-files-limit-ulimit-on-mac-os-x-add0f1bfddde

* Use these commands:

export GOPATH=~/github/hugo-from-source
# save source in $GOPATH & build it
go get -v github.com/tohojo/hugo 
cd ~/github/bufferbloat.net
$GOPATH/bin/hugo serve

-Rich
___
Bloat mailing list
Bloat@lists.bufferbloat.net
https://lists.bufferbloat.net/listinfo/bloat