Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
juju2 2.0-beta13 (devel) #47
Conversation
tomck
added some commits
Jun 24, 2016
This was referenced Jun 27, 2016
referenced
this pull request
in Homebrew/homebrew-core
Jul 1, 2016
UniqMartin
changed the title from
Create juju2.rb
to
juju2 2.0-beta10 (devel)
Jul 1, 2016
UniqMartin
commented
Jul 1, 2016
|
Sorry for the delay! I have a lot on my plate recently and I don't normally look into this tap … I think this formula is installing binaries that will create a conflict if |
UniqMartin
added
the
new formula
label
Jul 1, 2016
|
Is there a way to rename the bin during There is a plan to describe a way to have both versions installed concurrently, but either by naming the binary If it were up to me, it would all be under juju and the suggestion would be to run |
UniqMartin
commented
Jul 1, 2016
Yes, you can do something like (maybe better to have that on two separate lines in this case): bin.install "juju" => "juju2", "juju-metadata" => "juju2-metadata"
I'm afraid that's not possible as Homebrew has only very limited support for concurrently installing multiple versions of a formula. It's also not really supported. With the core |
|
Are the |
tomck
changed the title from
juju2 2.0-beta10 (devel)
to
juju2 2.0-beta11 (devel)
Jul 2, 2016
tomck
added some commits
Jul 2, 2016
|
@DomT4 I'm not completely sure, there are dependencies: https://github.com/juju/juju/blob/master/Makefile#L20 |
|
I set up a completely fresh Yosemite install in Virtualbox and installed Brew and then juju2 via this pull request. There were no issues. |
sinzui
commented
Jul 4, 2016
|
Sorry, I have been traveling. The dependencies in the makefile are for developers and unit tests. The juju release tarfile has all dependencies vendored into the fat tarfile. The juju qa team creates the release tarfile and verifies it can be unpacked built on Linux, Windows, and OSX is a few steps: The juju and juju-metadata binaries are all that is needed. I agree we want to rename these binaries so that they can co-exist with juju 1.x, but there are some side-effect to consider. Juju search the "juju-*" to discover plugins, and the plugins are hardcoded to call "juju". "juju2-metadata" breaks because juju cannot find it and it finds wrong juju. So renameing to "juju2" and "juju-metadata2" allows the command "juju2 metadata" to work. |
sinzui
commented
Jul 14, 2016
|
I think this formula is good to merge once the binaries are renamed: Is there anything else needed? |
UniqMartin
commented
Jul 15, 2016
@sinzui My first impression when reading this was: How would that work? Wouldn't be Other than that, I think once @tomck incorporates your suggestions, this should be good to go. |
|
As far as I can tell it works with the renaming, I don't know what juju-metadata actually does. Build of new commit successful. |
tomck
changed the title from
juju2 2.0-beta11 (devel)
to
juju2 2.0-beta12 (devel)
Jul 18, 2016
sinzui
commented
Jul 18, 2016
|
@UniqMartin ouch, you are right. Renaming the plugin to juju-metadata2 means "juju2 metadata2" is the command to create image and agent streams. Running "juju2 metadata" will use the juju 1 client to create streams. The streams are compatible at this time. There are no plans to change streams and what can changed is limited since the format must be backward compatible with juju 1.18. |
UniqMartin
commented
Jul 18, 2016
|
This sounds a bit like this could be confusing or problematic in the future and I'm now a bit hesitant to accept the rename as the ideal solution. But of course that's just my outside view from someone who's not using the software. Would making this formula keg-only maybe be a better solution for the name conflict. That way the binaries wouldn't be linked to Does this sound like an acceptable alternative or maybe even a better solution to renaming? |
|
Because of the ease of removing and installing bottled software (for the future when it leaves beta), I would just suggest using conflicts. As mentioned elsewhere, juju and juju2 environments aren't compatible with each other at the moment, and who knows when that'll change? Since most likely people aren't going to be maintaining both, there's no need to bend over backwards to permit a simultaneous install. |
UniqMartin
commented
Jul 18, 2016
|
I think adding a |
tomck
added some commits
Jul 18, 2016
tomck
changed the title from
juju2 2.0-beta12 (devel)
to
juju2 2.0-beta13 (devel)
Jul 24, 2016
|
So, conflicts_with is setup, and it's testing, can this get approved? |
tomck commentedJun 24, 2016
Per discussion in homebrew/homebrew-core#2369, creating separate juju2 formula in --devel only mode. No --head option due to a mismatch of directory structure between github and launchpad.