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

add a rake task to update module dependencies #158

Open
attachmentgenie opened this issue Aug 26, 2021 · 2 comments
Open

add a rake task to update module dependencies #158

attachmentgenie opened this issue Aug 26, 2021 · 2 comments
Labels

Comments

@attachmentgenie
Copy link
Contributor

Use Case

pdksync provides a method to "globally" manage requirement, it would be great to be able to manage dependencies in a similar way.

Describe the Solution You Would Like

bundle exec rake 'pdksync:update_dependencies[puppetlabs/stdlib,version_requirement,>= 6.0.0 < 9.0.0]'

Describe Alternatives You've Considered

extending the update_requirements task

@bastelfreak
Copy link

I'm not sure if that helps in any way, but at Vox Pupuli we use https://github.com/ekohl/metadata_json_deps which allows us to validate a metadata.json and checks all deps against newer versions. We have that also built into our modulesnc_config setup with another script to bump the version in all provided metadata.json files: https://github.com/voxpupuli/modulesync_config#checking-all-module-dependencies-against-the-forge

@sanfrancrisko
Copy link
Contributor

You can achieve what you're looking to do, with an admittedly, clunky method of modifying the managed_modules.yml config between invocations of the pdksync:update_dependencies Rake task.

To define the module as part of the rake task is going to be counter to the design of pdksync - the idea is that you set all the modules you wish to perform the action on within the managed_modules.yml.

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

No branches or pull requests

4 participants