Skip to content

Log cache decisions in order to better understand cache misses #6408

@gautaz

Description

@gautaz

Hello,

I did not find any existing issue related to this, my apologies if this is not the right place.

Many times, I find myself wondering why buildah did not use the cached layers during a build while I had not directly modified any file in a project.
It seems I am not the only one dealing with this kind of issue, see: https://github.com/MShekow/directory-checksum/.

Would it be hard to add some logs in buildah which would detail how it decides to use or not cached layers?
This way, one would understand why a cache miss occurred and probably fix it by ignoring the right files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions