Skip to content

puppet generate: print module directory when types are missing - #617

Merged
Sharpie merged 1 commit into
OpenVoxProject:mainfrom
Sharpie:enhance-no-types-msg
Aug 18, 2026
Merged

puppet generate: print module directory when types are missing#617
Sharpie merged 1 commit into
OpenVoxProject:mainfrom
Sharpie:enhance-no-types-msg

Conversation

@Sharpie

@Sharpie Sharpie commented Aug 18, 2026

Copy link
Copy Markdown
Member

Short description

When puppet generate types is run, it scans the modulepath in an environment and compiles environment-isolated implementations for each module that contains a puppet/type/ sub-directory. When run with debug logging enabled, the command prints the name of each module skipped due to the types sub-directory not being visible.

This commit updates the debug-level message to add the path to the module directory that was examined. Module discovery is done by walking the modulepath, which is a prioritized list of locations that modules can be loaded from. Including the directory path in the debug message gives users a signal that can indicate when a module has been shadowed by another directory with the same name, but higher precedence on the modulepath.

Checklist

I have:

When `puppet generate types` is run, it scans the `modulepath` in an
environment and compiles environment-isolated implementations for each
module that contains a `puppet/type/` sub-directory. When run with
debug logging enabled, the command prints the name of each module
skipped due to the types sub-directory not being visible.

This commit updates the debug-level message to add the path to the
module directory that was examined. Module discovery is done by
walking the `modulepath`, which is a prioritized list of locations
that modules can be loaded from. Including the directory path in the
debug message gives users a signal that can indicate when a module has
been shadowed by another directory with the same name, but higher
precedence on the `modulepath`.

Signed-off-by: Charlie Sharpsteen <charlie@overlookinfratech.com>
@Sharpie
Sharpie force-pushed the enhance-no-types-msg branch from ce639a0 to 23215d4 Compare August 18, 2026 18:05
@Sharpie
Sharpie enabled auto-merge August 18, 2026 18:05
@Sharpie Sharpie added the bug Something isn't working label Aug 18, 2026
@Sharpie
Sharpie merged commit 236f240 into OpenVoxProject:main Aug 18, 2026
17 checks passed
@Sharpie
Sharpie deleted the enhance-no-types-msg branch August 18, 2026 19:18
@Sharpie Sharpie added the backport 8.x backports the merged PR to the 8.x branch label Aug 18, 2026
@OpenVoxProjectBot

Copy link
Copy Markdown
Contributor

Successfully created backport PR for 8.x:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 8.x backports the merged PR to the 8.x branch bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants