Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

install_module_from_forge_on should require a version constraint string #35

Open
jhoblitt opened this issue Jan 28, 2022 · 3 comments
Open

Comments

@jhoblitt
Copy link
Member

I have been writing something like this when I always want the latest version of a forge module:

install_module_from_forge_on(host, mod, '> 1')

This feels a bit silly. It would be preferable if #install_module_from_forge, #install_module_from_forge_on and #module_version_from_requirement didn't require a version constraint string and it being absent indicates that the latest forge version should be installed.

@ekohl
Copy link
Member

ekohl commented Jan 31, 2022

I'd say it should default to > 0 for maximum compatibility. However, I'm working on deprecating this entire gem and moving to another. There I already have it default to nil and then it doesn't pass in the version at all, trusting puppet module install to do the right thing.

https://github.com/voxpupuli/beaker_puppet_helpers/blob/422c1ec0dce9a391927a6e0b2c1f7f040fff49bd/lib/beaker_puppet_helpers/module_utils.rb#L9-L29

@jhoblitt
Copy link
Member Author

I wasn't aware of beaker_puppet_helpers, maybe we could add a link in the README from this module? How soon do you think voxpupuli-test will be able to switch over?

@ekohl
Copy link
Member

ekohl commented Jan 31, 2022

It's still very fresh, but I opened voxpupuli/voxpupuli-acceptance#31. I'm at the point where I should be doing some testing with it to see if it can replace the various gems. However, we're also in the middle of preparing for Foreman 3.2 so I probably won't have time to do so in the next week or 2.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants