Jira (PUP-9018) Autoloader module_directories should not include duplicate modules

2 views
Skip to first unread message

Josh Cooper (JIRA)

unread,
Jul 24, 2018, 3:37:03 PM7/24/18
to puppe...@googlegroups.com
Josh Cooper assigned an issue to Josh Cooper
 
Puppet / Bug PUP-9018
Autoloader module_directories should not include duplicate modules
Change By: Josh Cooper
Assignee: Josh Cooper
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Josh Cooper (JIRA)

unread,
Jul 24, 2018, 3:37:03 PM7/24/18
to puppe...@googlegroups.com
Josh Cooper created an issue
Issue Type: Bug Bug
Assignee: Unassigned
Created: 2018/07/24 12:36 PM
Priority: Normal Normal
Reporter: Josh Cooper

The autoloader's module_directories method can return the same module multiple times, or more likely different versions of the same module. This can lead to situations where the autoloader loads a type from one version of the module, but a provider from a different version.

The module_directories method should only return the first instance of the module in the modulepath, which is how other parts of puppet, eg Puppet::Pops::Loaders, file serving, load facts from modules, and PMT.

Josh Cooper (JIRA)

unread,
Jul 25, 2018, 12:33:02 PM7/25/18
to puppe...@googlegroups.com

Josh Cooper (JIRA)

unread,
Jul 25, 2018, 12:33:03 PM7/25/18
to puppe...@googlegroups.com

Josh Cooper (JIRA)

unread,
Aug 13, 2018, 6:48:02 PM8/13/18
to puppe...@googlegroups.com

Josh Cooper (JIRA)

unread,
Aug 13, 2018, 6:49:02 PM8/13/18
to puppe...@googlegroups.com
Josh Cooper commented on Bug PUP-9018
 
Re: Autoloader module_directories should not include duplicate modules

The multiple directory issue has always been a problem, e.g. the compile master's module path can contain multiple directories, and there can be multiple versions of the same module. Moving out of the epic for now.

Josh Cooper (JIRA)

unread,
Aug 14, 2018, 1:49:02 AM8/14/18
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Fix Version/s: PUP 6.0.0
Fix Version/s: PUP 6.y

Josh Cooper (Jira)

unread,
Nov 11, 2020, 2:35:03 AM11/11/20
to puppe...@googlegroups.com
Josh Cooper assigned an issue to Unassigned
Change By: Josh Cooper
Assignee: Josh Cooper
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages