Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Failing docker builds will leave files owned as root #421

@Shados

Description

@Shados

https://github.com/UnitedIncome/serverless-python-requirements/blob/c9d910cc40d95163f8894abfdefaf9c4fc33b505/lib/pip.js#L264-L269

^ This code never gets run if during the docker-run one of the Python package builds fails (e.g. due to missing some system dependency).

This will leave the download cache files owned by root, which will in turn prevent subsequent build attempts from working, due to this earlier attempt to open $downloadCacheDir/requriements.txt in write mode now being unable to succeed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions