Skip to content

Fail the build if multiple package manager files detected #1691

@edmorley

Description

@edmorley

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-18915632.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions