agonzalezro / polo

Static site generator written in Go and "compatible" with Jekyll & Pelican content
MIT License
47 stars 9 forks source link

Will Polo work on Windows? #48

Open tyeeman opened 6 years ago

tyeeman commented 6 years ago

If I go get, will a windows binary be created and then I can use that on Windows to build my blog?

agonzalezro commented 6 years ago

I am not sure if the path joins would work, but it would be nice if you try and you let us know. However, you can build it online: http://agonzalezro.github.io/how-to-automagically-generate-your-polo-blog-with-circleci.html

tyeeman commented 6 years ago

OK, just tried "go get github.com/agonzalezro/polo" and got this response -

package github.com/agonzalezro/polo: no Go files in C:\goWorkspace\src\github.com\agonzalezro\polo

Any way to add a "go" file in your root folder to make this work?

agonzalezro commented 6 years ago

You will need more than just a go get, try this on your computer:

# clone it
$ cd polo
$ glide install # This will install dependencies
$ cd cmd/polo
$ go generate # This will transform the templates to Go code
$ go build

After those steps you will have a binary for Windows that may (or may not) work because of the problem I mentioned before about how the paths are joint.

Thanks for your help!

agonzalezro commented 6 years ago

BTW, have you tried to use it with Docker? The steps are on the README.md.

tyeeman commented 6 years ago

I noticed glide has been superseded by dep -

Golang Dep

The Go community now has the dep project to manage dependencies. Please consider trying to migrate from Glide to dep. If there is an issue preventing you from migrating please file an issue with dep so the problem can be corrected. Glide will continue to be supported for some time but is considered to be in a state of support rather than active feature development.

Should I use dep instead of glide?

FYI, netlify also works similar to CircleCI!

Do you have the template for http://k8s.uk/

agonzalezro commented 6 years ago

There is certain discussion about vendoring in Go so I will not migrate from glide yet. There are other options as https://github.com/golang/go/wiki/Modules. Let's wait for the waters to calm :) and glide just works fine for what we need