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

Can bolt resolve non-forge dependencies in the metadata.json? #3276

Open
gavindidrichsen opened this issue Mar 12, 2024 · 1 comment
Open
Labels
Feature New features and improvements.

Comments

@gavindidrichsen
Copy link

Use Case

I would like Bolt to bring dependent non-Forge modules w/o specifying them directly in the Bolt project.

Describe the Solution You Would Like

For example, the puppetlabs-chocolatey_server metadata.json, contains the following forge dependencies:

  "dependencies": [
    {
      "name": "puppetlabs/acl",
      "version_requirement": ">= 1.0.1 < 3.0.0"
    },
    {
      "name": "puppetlabs/powershell",
      "version_requirement": ">= 1.0.4 < 3.0.0"
    },
    {
      "name": "puppetlabs/iis",
      "version_requirement": ">= 4.0.0 < 5.0.0"
    }

I'd like to be able to add non-forge modules to the dependency list above, if possible. This could be, for example, a git@gitub.com or an https://github.com/org/myrepo.git.

Describe Alternatives You've Considered

N/A

Additional Context

This voxpupuli discussion goes into more detail about the actual ask:

How can I bring that dependency to my main project without specifying it explicitly in the bolt-project.yaml? Ideally, I'd like to specify the my_basemodule as a dependency in the my_module1's metadata.json file. Then I'd expect that bolt module install --force will bring it to my project. Is it possible?

In other words,

I would like Bolt to bring dependent non-Forge modules w/o specifying them directly in the Bolt project.

@gavindidrichsen gavindidrichsen added the Feature New features and improvements. label Mar 12, 2024
@donoghuc
Copy link
Member

This is not currently possible in bolt's dependency resolution for modules it is noted in the docs: https://www.puppet.com/docs/bolt/latest/bolt_installing_modules.html#add-a-forge-module-and-its-dependencies-to-an-existing-project

As mentioned these dependencies (non forge hosted) will need to be listed in the projects module deps.

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

No branches or pull requests

2 participants