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

Fail the build if multiple package manager files detected #1691

Open
edmorley opened this issue Nov 8, 2024 · 0 comments
Open

Fail the build if multiple package manager files detected #1691

edmorley opened this issue Nov 8, 2024 · 0 comments
Assignees

Comments

@edmorley
Copy link
Member

edmorley commented Nov 8, 2024

Currently the buildpack will use whichever package manager it finds first, if the files of multiple package managers are found.

This occasionally results in support tickets where the user believes the build to not be installing dependencies correctly, when in fact they are adding dependencies to the wrong package manager file.

To avoid this, we should make the presence of multiple package manager files an error.

We'll first want to add a warning so the change is not a surprise. (Particularly with the recent Poetry support addition, there will be apps using the third party Poetry buildpack that have both a poetry.lock and the generated requirements.txt until they remove the third-party buildpack.)

GUS-W-14336556.

@edmorley edmorley self-assigned this Nov 8, 2024
edmorley added a commit that referenced this issue Nov 8, 2024
Currently the buildpack will use whichever package manager it
finds first, if the files of multiple package managers are found.

This occasionally results in support tickets where the user believes
the build to not be installing dependencies correctly, when in fact
they are adding dependencies to the wrong package manager file.

As such, we want to make the presence of multiple package manager
files an error, but first we should add a warning so it's not a surprise.

(Plus with the recent Poetry support addition, there will be apps using
the third party Poetry buildpack that have both a `poetry.lock` and
the generated `requirements.txt` until they remove the third-party
buildpack.)

Towards #1691.
GUS-W-17167927.
edmorley added a commit that referenced this issue Nov 8, 2024
Currently the buildpack will use whichever package manager it
finds first, if the files of multiple package managers are found.

This occasionally results in support tickets where the user believes
the build to not be installing dependencies correctly, when in fact
they are adding dependencies to the wrong package manager file.

As such, we want to make the presence of multiple package manager
files an error, but first we should add a warning so it's not a surprise.

(Plus with the recent Poetry support addition, there will be apps using
the third party Poetry buildpack that have both a `poetry.lock` and
the generated `requirements.txt` until they remove the third-party
buildpack.)

Towards #1691.
GUS-W-17167927.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant