Joker / jade

Jade.go - pug template engine for Go (golang)
BSD 3-Clause "New" or "Revised" License
354 stars 37 forks source link

go get not working on Ubuntu #38

Closed kargirwar closed 3 years ago

kargirwar commented 3 years ago

OS: Ubuntu 20.04.1 LTS

go get github.com/Joker/jade/cmd/jade go: downloading github.com/Joker/jade v1.0.0 go get: module github.com/Joker/jade@upgrade found (v1.0.0), but does not contain package github.com/Joker/jade/cmd/jade

tbo commented 3 years ago

I ran into the same issue. It seems that the latest tagged version (v1.0.0) didn't contain /cmd/jade. Getting the master version worked though: go get github.com/Joker/jade/cmd/jade@master

candlerb commented 3 years ago

FYI, I see the same on macOS

MacBook-Pro-4:~ $ go get github.com/Joker/jade/cmd/jade
go: downloading github.com/Joker/jade v1.0.0
go get: module github.com/Joker/jade@upgrade found (v1.0.0), but does not contain package github.com/Joker/jade/cmd/jade
MacBook-Pro-4:~ $ go version
go version go1.16.3 darwin/amd64

If the package is behaving as expected, then i think the installation instructions here need fixing.

candlerb commented 3 years ago

git diff v1.0.0 master shows that jade/cmd/* wasn't introduced until after v1.0.0. Would releasing a v1.0.1 fix this?

thejimmyg commented 3 years ago

Same issue here. Without the jade command you can't compile your templates.

This worked for me on macOS 10.15 with go 1.16:

go get github.com/Joker/jade/cmd/jade@master
export PATH="$PATH:${HOME}/go/bin"
go mod download github.com/Joker/hpp
go mod download github.com/valyala/bytebufferpool
go generate

I also found that tpl_hello from the README.md needed to be renamed Jade_hello for the example to run.

Joker commented 3 years ago

Thank you all. (tag added)