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

no buildable Go source files #3

Closed
oren opened this issue Jun 26, 2016 · 3 comments
Closed

no buildable Go source files #3

oren opened this issue Jun 26, 2016 · 3 comments

Comments

@oren
Copy link
Contributor

oren commented Jun 26, 2016

I follow the readme and get:

go get -d github.com/nii236/nii-finance
package github.com/nii236/nii-finance: no buildable Go source files in /home/oren/p/go/src/github.com/nii236/nii-finance
@oren
Copy link
Contributor Author

oren commented Jun 26, 2016

also when i fork it and run go build i get the same error. i assume i first need to cd into some folder but not sure.

@nii236
Copy link
Owner

nii236 commented Jun 27, 2016

Thanks for the comment!

The whole project runs off docker-compose, and there are no buildable go source files in the root folder. The buildable folders are in each of folders in ./service.

Try and remove the original nii-finance folder first, then go get -d again. The -d flag just downloads so it shouldn't complain. I just tried it myself and I got the same error until I removed the nii-finance folder first.

@nii236
Copy link
Owner

nii236 commented Jun 27, 2016

Turns out the go get tool with the -d flag complains if there are no main.go files in the root folder.

I've updated the instructions so it says go get -d github.com/nii236/nii-finance/... and it seems to work well now.

@nii236 nii236 closed this as completed Jun 27, 2016
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