Skip to content

Don't ship pam.py in the module#49

Merged
FirefighterBlu3 merged 1 commit intoFirefighterBlu3:masterfrom
AdamWill:no-pampy
Dec 12, 2025
Merged

Don't ship pam.py in the module#49
FirefighterBlu3 merged 1 commit intoFirefighterBlu3:masterfrom
AdamWill:no-pampy

Conversation

@AdamWill
Copy link
Copy Markdown
Contributor

@AdamWill AdamWill commented Jul 4, 2025

The comment at the top of this file says:
"This is a legacy file, it is not used. Here for example." so it seems sensible to no longer ship it as part of the pam module itself. This moves it to an examples/ directory which will not be included in builds of the actual module, and updates the comment.

@AdamWill
Copy link
Copy Markdown
Contributor Author

AdamWill commented Jul 4, 2025

I'm not sure it makes any sense to include the file at all any more, but this is more conservative than just dropping it, I guess. Having it in the module itself just feels like a footgun. It means you can try to do import pam.pam, but it fails because it doesn't import __internals correctly.

The comment at the top of this file says:
"This is a legacy file, it is not used. Here for example."
so it seems sensible to no longer ship it as part of the pam
module itself. This moves it to an examples/ directory which
will not be included in builds of the actual module, and updates
the comment.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
@FirefighterBlu3
Copy link
Copy Markdown
Owner

lgtm

@FirefighterBlu3 FirefighterBlu3 merged commit 55cfa44 into FirefighterBlu3:master Dec 12, 2025
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.

2 participants