Skip to content

Conversation

@edmorley
Copy link
Member

@edmorley edmorley commented Dec 9, 2025

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.

It also means historic users of third-party Poetry and uv buildpacks might not realise that the buildpack now natively supports those package managers (in a much more efficient way), if they missed our release announcements.

As such, in November 2024 in #1692 a warning was added, which we're now converting to an error.

Users with multiple package manager files committed to their Git repo will need to pick one package manager and delete the files relating to the others.

And users who are still using the third-party Poetry or uv buildpacks will need to remove those buildpacks from their app:
https://devcenter.heroku.com/articles/managing-buildpacks#remove-classic-buildpacks

Closes #1691.
GUS-W-18915632.

@edmorley edmorley self-assigned this Dec 9, 2025
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.

It also means historic users of third-party Poetry and uv buildpacks
might not realise that the buildpack now natively supports those package
managers (in a much more efficient way), if they missed our release
announcements.

As such, in November 2024 in #1692 a warning was added, which we're now
converting to an error.

Users with multiple package manager files committed to their Git repo
will need to pick one package manager and delete the files relating to
the others.

And users who are still using the third-party Poetry or uv buildpacks
will need to remove those buildpacks from their app:
https://devcenter.heroku.com/articles/managing-buildpacks#remove-classic-buildpacks

Closes #1691.
GUS-W-18915632.
@edmorley edmorley force-pushed the multiple-package-managers-error branch from 5215101 to 6c5d932 Compare December 9, 2025 18:23
@edmorley edmorley marked this pull request as ready for review December 9, 2025 19:00
@edmorley edmorley requested a review from a team as a code owner December 9, 2025 19:00
@edmorley edmorley merged commit b66b202 into main Dec 10, 2025
9 of 10 checks passed
@edmorley edmorley deleted the multiple-package-managers-error branch December 10, 2025 13:28
@heroku-linguist heroku-linguist bot mentioned this pull request Dec 10, 2025
@edmorley
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fail the build if multiple package manager files detected

2 participants