flosch / pongo2

Django-syntax like template-engine for Go
https://www.schlachter.tech/pongo2
MIT License
2.86k stars 269 forks source link

README: Add installation command for Go >= 1.18 #323

Closed kirisakow closed 1 year ago

flosch commented 1 year ago

Why should go install be required or preferred for Go >= 1.18?

kirisakow commented 1 year ago

See official Go documentation:

Deprecation of 'go get' for installing executables - The Go Programming Language https://go.dev/doc/go-get-install-deprecation

flosch commented 1 year ago

pongo2 is not an executable, but a library. Go get continues to work totally fine.

kirisakow commented 1 year ago

pongo2 is not an executable, but a library. Go get continues to work totally fine.

I apologize, I was wrong.

However, I still couldn't install it with the go get -u github.com/flosch/pongo2/v6 command alone. Please see the following commit for additional commands that, I believe, need to be added to the installtion instructions: https://github.com/flosch/pongo2/commit/06eec7f28521baf27e6148cda56ea289f3487485