When it happens, the Modulefile for the project specified is not being picked up, and their dependencies are not resolving. This is a feature supported by Librarian.
This pull request is addressing this issue.
To make it easier to check the error, I created a repo with a module as a subdirectory.
Then use this Puppetfile:
forge "http://forge.puppetlabs.com"
mod 'apt-avahi',
:git => 'https://bitbucket.org/bltavares/example-puppet-modulefile-subdir.git',
:path => 'apt-avahi'
Before applying the patch, you will find this dir structure under modules:
% ls modules
apt-avahi
After applying the patch, the modules dir will contain the resolved modules:
Make git repositories with puppet modules under a subdirectory contribute to the dependency resolution
Some times the git repository contains a group of modules as subdirectories. One example is https://github.com/example42/puppet-modules
When it happens, the Modulefile for the project specified is not being picked up, and their dependencies are not resolving. This is a feature supported by Librarian.
This pull request is addressing this issue.
To make it easier to check the error, I created a repo with a module as a subdirectory.
Then use this
Puppetfile
:Before applying the patch, you will find this dir structure under
modules
:After applying the patch, the
modules
dir will contain the resolved modules: