Skip to content

Ticket/2.7.x/12256 module tool core changes#503

Closed
mmrobins wants to merge 2 commits intopuppetlabs:2.7.xfrom
mmrobins:ticket/2.7.x/12256-module_tool_core_changes
Closed

Ticket/2.7.x/12256 module tool core changes#503
mmrobins wants to merge 2 commits intopuppetlabs:2.7.xfrom
mmrobins:ticket/2.7.x/12256-module_tool_core_changes

Conversation

@mmrobins
Copy link
Copy Markdown
Contributor

These are the changes needed for the module tool that affect areas of code in other parts of Puppet.

Matt Robinson and others added 2 commits February 15, 2012 09:57
Being able to figure out what other modules depend on a module is useful
for resolving contraints when installing and preventing uninstalls of
modules that are still required.  And being able to tell if a module has
local changes is useful to prevent accidentally losing those changes
when upgrading or uninstalling a module.
Before this patch module requirements do not include version numbers.
Since modules with the same name, but different version numbers, can be
installed at the same time -- in different parts of the modulepath,
there is no way to tell which module has the dependency.

This patch fixes this issue by changing the data structure that
represents module requirements from a two item Array to a Hash with
three keys: name, version, and version_requirement.

This patch includes updated spec tests related to this change.
@mmrobins mmrobins closed this Feb 15, 2012
melissa pushed a commit to melissa/puppet that referenced this pull request Mar 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant