Skip to content
This repository has been archived by the owner on Mar 27, 2021. It is now read-only.

Will Polo work on Windows? #48

Open
tyeeman opened this issue Sep 22, 2018 · 6 comments
Open

Will Polo work on Windows? #48

tyeeman opened this issue Sep 22, 2018 · 6 comments

Comments

@tyeeman
Copy link

tyeeman commented Sep 22, 2018

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

@agonzalezro
Copy link
Owner

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
Copy link
Author

tyeeman commented Sep 22, 2018

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
Copy link
Owner

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
Copy link
Owner

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

@tyeeman
Copy link
Author

tyeeman commented Sep 24, 2018

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
Copy link
Owner

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants