How to compile hugo from source with extended tag?

Hi, guys,

I just go get install gohugoio/hugo throught

my hugo site use sass, according to, I have executed go install --tags extended

but still I can not compile hugo support sass, here is my command go build -o hugo main.go

$ hugo
Building sites … WARN 2019/11/30 14:54:39 Markup type mmark is deprecated and will be removed in a future release. See
ERROR 2019/11/30 14:54:39 Transformation failed: TOCSS: failed to transform “sass/main.scss” (text/x-scss): this feature is not available in your current Hugo version, see for more information
Total in 2342 ms
Error: Error building site: logged 1 error(s)

How to compile main.go to support sass?

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