Skip to content

Cache files created as root #131

@jyn514

Description

@jyn514

I would like to cache various files created by the root user during my build. This would allow me to cache Docker steps as well as files downloaded by a different user, see https://github.com/jyn514/docs.rs/runs/349254873#step:18:1 for an example.

Currently this fails with an error from tar:

/bin/tar: ./overlay2: Cannot open: Permission denied
/bin/tar: ./builder: Cannot open: Permission denied
...
/bin/tar: Exiting with failure status due to previous errors

As a workaround, I could probably make the files world-readable, but I have a feeling that they will not be owned by the right user if the cache is hit.

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