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

save: use x/tools/refactor/importgraph instead of go list #33

Merged
merged 2 commits into from
Jul 25, 2016
Merged

save: use x/tools/refactor/importgraph instead of go list #33

merged 2 commits into from
Jul 25, 2016

Conversation

tamird
Copy link
Contributor

@tamird tamird commented Jul 25, 2016

Also ignore all build tags, getting the maximal set of dependencies.

Fixes #29.

cc @bdarnell

Also ignore all build tags, getting the maximal set of dependencies.

Fixes #29.
@tamird
Copy link
Contributor Author

tamird commented Jul 25, 2016

@robfig OK, I tweaked this a bunch (sorry about that, there's no test coverage for commands, so I had to run it against CockroachDB a bunch of times).

Please take a look.

@tamird
Copy link
Contributor Author

tamird commented Jul 25, 2016

Green.

@robfig robfig merged commit c7fb89f into robfig:master Jul 25, 2016
@robfig
Copy link
Owner

robfig commented Jul 25, 2016

Thank you!!

@tamird tamird deleted the importgraph-not-go-list branch July 25, 2016 20:55
@robfig
Copy link
Owner

robfig commented Aug 17, 2016

Hm, looks like this caused issues; after a clean glock sync, glock save complains about dependencies that can not be found. I guess the solution is to manually find all of the new dependencies that need to go into the Glockfile as part of the upgrade step.

@robfig
Copy link
Owner

robfig commented Aug 17, 2016

Yuck, got stuck on
import "./testdata": import relative to unknown directory

from github.com/golang/protobuf/proto/all_test.go and friends

@tamird
Copy link
Contributor Author

tamird commented Aug 17, 2016

Hm, looks like this caused issues; after a clean glock sync, glock save complains about dependencies that can not be found. I guess the solution is to manually find all of the new dependencies that need to go into the Glockfile as part of the upgrade step.

Yeah, so this is somewhat expected since go get only fetches dependencies needed by the build tags specified in that go get invocation, while this change made glock save ignore build tags for the purpose of computing dependencies.

Yuck, got stuck on
import "./testdata": import relative to unknown directory

from github.com/golang/protobuf/proto/all_test.go and friends

Hm, I don't see any relative imports in that file?

@robfig
Copy link
Owner

robfig commented Aug 17, 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

Successfully merging this pull request may close these issues.

None yet

2 participants