Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
cmd/juju: Moved most of this package out of package main #2713
Conversation
mattyw
added some commits
Jul 1, 2015
|
$$merge$$ |
|
Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju |
|
Build failed: Generating tarball failed |
|
$$merge$$ |
|
Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju |
added a commit
that referenced
this pull request
Jul 2, 2015
jujubot
merged commit 5962109
into
juju:master
Jul 2, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mattyw commentedJul 2, 2015
Pretty much all of cmd/juju existed inside the main package. This isn't ideal for testing in downstream projects. The real fix would be to split up the package into smaller chunks (probably one per sub command). This work is already happening in a piecemeal way but while it's happening we still have a large main package.
This is an attempt to make a small step towards fixing the problem. We move pretty much everything out of main - leaving only the bear minimum inside the main package.
(Review request: http://reviews.vapour.ws/r/2091/)
If you've arrived from rb to see a sensible diff here's more advice:
main.go appears totally new in the diff. If you look at the two commits seperately you will see that in the first one it moves and has the package name changed. And in the second commit a new small file is added.