-
Notifications
You must be signed in to change notification settings - Fork 209
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
Bug when using ":path" or ":git" in Puppetfile #272
Comments
thanks for the detailed report, can you create a test case in https://github.com/rodjek/librarian-puppet/blob/master/features/install/forge.feature? |
I can add these test cases:
I already have tried them with the expected result:
But this means that you need a forge proxy configured at this IP with this modules inside.
But this makes these tests to not to be portable, at least if you do not create this server under a public and widely accessible IP. How would you like to proceed? AlternativeOne possible option would be to remove the first test and check that the error obtained in the second test is related with the non existing "local" forge instead of the Unable to find module 'tester-tester_dependency1' on https://forgeapi.puppetlabs.com |
Could try just checking the |
As you may see I've created a pull request with your suggestion. |
I found how to reproduce the bug. This is detected when you are using a Puppet forge mirror, because there you'll have your own modules and a mirror of the original Puppet forge.
How to reproduce
Create two puppet modules with a simple structure
metadata.json [tester/tester]
metadata.json [tester/tester_dependency1]
Upload them to your Forge, in this case named puppet-library.redtonic
Create a Puppetfile
Execute the install
It works correctly!
Try the same with local/git paths
Re-install the packages using the local reference (the same happens when using ":git" references)
Install again with local reference with a clean installation.
The text was updated successfully, but these errors were encountered: