How to compile hugo from source with extended tag?

Got it, after run go install --tags extended, the extend version hugo will be installed in $GOPATH/bin.

Duplicated question with Building Hugo from Source with Go Modules

Thanks.