Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing Locally #27

Closed
jletey opened this issue Feb 19, 2019 · 2 comments
Closed

Testing Locally #27

jletey opened this issue Feb 19, 2019 · 2 comments

Comments

@jletey
Copy link
Contributor

jletey commented Feb 19, 2019

Hey Nikita,

When I've been making PRs, I haven't been testing the code locally, since I don't know how

I tried go get ./..., but I get an error message saying:

go get: no install location for directory /Users/john/license-up outside GOPATH
	For more details see: 'go help gopath'

How to you test locally? This is probably good to add to CONTRIBUTING.md

@nikitavoloboev
Copy link
Owner

For me the code is inside my GOPATH so:

~/go/src/github.com/nikitavoloboev/license-up

For you, I believe you should clone it to:

~/go/src/github.com/johnletey/license-up

And from there you can run go install. This should put the tool in your PATH to use.

How to write Go Code has more info. One thing we can do for future is move to Go Modules. This removes the GOPATH issue.

@jletey
Copy link
Contributor Author

jletey commented Feb 19, 2019

Ah ... thanks

I had the code in ~/license-up ... I'll move it

I'll add this to the contributing guide

@jletey jletey closed this as completed Feb 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants