Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy the mtime on puppet generate types #9206

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Jan 12, 2024

  1. Copy the mtime on puppet generate types

    When installing a new module it can maintain the file timestamps from
    the original tarball (like g10 does). puppet generate types uses the
    timestamp of when it ran.
    
    If you update a module to a release that was created before it ran
    puppet types generate, it will never update the types. This can happen
    with a module downgrade, or just when you regenerated types manually. By
    using --force the timestamps are ignored, but that's only a workaround.
    
    This new approach copies the mtime from the source file to the generated
    cache file. It is only considered up to date if the mtime matches.
    ekohl committed Jan 12, 2024
    Configuration menu
    Copy the full SHA
    c0a5fca View commit details
    Browse the repository at this point in the history