forked from rodjek/librarian-puppet
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Specify dependent module in dependencies
This commit adds the origin of the dependency to verbose output, making it easier to determine which source/module is causing a conflict. For example: Failed to resolve puppetlabs-concat (= 5.1.1) <https://forgeapi.puppetlabs.com> becomes Failed to resolve puppetlabs-concat (= 5.1.1) <https://forgeapi.puppetlabs.com> (from Puppetfile)
- Loading branch information
1 parent
64ebfcf
commit 468bc67
Showing
7 changed files
with
108 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
require 'librarian/resolver' | ||
|
||
module Librarian | ||
module Puppet | ||
class Resolver < Librarian::Resolver | ||
|
||
class Implementation < Librarian::Resolver::Implementation | ||
def sourced_dependency_for(dependency) | ||
return dependency if dependency.source | ||
|
||
source = dependency_source_map[dependency.name] || default_source | ||
dependency.class.new(dependency.name, dependency.requirement, source, dependency.parent) | ||
end | ||
end | ||
|
||
def implementation(spec) | ||
Implementation.new(self, spec, :cyclic => cyclic) | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters