Skip to content

Added init command#13

Open
dvirsky wants to merge 2 commits intoowenthereal:masterfrom
EverythingMe:master
Open

Added init command#13
dvirsky wants to merge 2 commits intoowenthereal:masterfrom
EverythingMe:master

Conversation

@dvirsky
Copy link
Copy Markdown

@dvirsky dvirsky commented Mar 5, 2015

This is following #12 - no tests but I wanted you to have a look first. Let me know how do you think it should be tested, as it's not trivial.
My initial thought is to create a temporary GOPATH, go get some known package, and init nut on it.

dvirsky added 2 commits March 5, 2015 22:51
Signed-off-by: Dvir Volk <dvirsky@gmail.com>
…them

Signed-off-by: Dvir Volk <dvirsky@gmail.com>
Comment thread init.go
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could call go list -e -json ./... to return all deps in current path instead of traversing folders. It requires some code changes in https://github.com/jingweno/nut/blob/master/pkg.go#L246 though.

@owenthereal
Copy link
Copy Markdown
Owner

Sorry for the late reply. It looks good to me in general. I made some comments on improvement. Cheers

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

Successfully merging this pull request may close these issues.

2 participants