Commit b66b202
authored
Error when multiple package manager files are found (#1993)
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.1 parent 6d06c3b commit b66b202
File tree
6 files changed
+38
-98
lines changed- lib
- spec
- fixtures/multiple_package_managers
- hatchet
6 files changed
+38
-98
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | 47 | | |
53 | 48 | | |
54 | 49 | | |
| |||
132 | 127 | | |
133 | 128 | | |
134 | 129 | | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
| 130 | + | |
| 131 | + | |
144 | 132 | | |
145 | 133 | | |
146 | 134 | | |
147 | 135 | | |
148 | 136 | | |
149 | 137 | | |
150 | | - | |
151 | | - | |
152 | | - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
153 | 142 | | |
154 | | - | |
155 | | - | |
| 143 | + | |
| 144 | + | |
156 | 145 | | |
157 | 146 | | |
158 | 147 | | |
159 | 148 | | |
160 | 149 | | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | 150 | | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
182 | 158 | | |
183 | 159 | | |
184 | 160 | | |
185 | | - | |
| 161 | + | |
186 | 162 | | |
187 | 163 | | |
188 | 164 | | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | 90 | | |
92 | | - | |
| 91 | + | |
93 | 92 | | |
94 | | - | |
| 93 | + | |
95 | 94 | | |
96 | | - | |
| 95 | + | |
97 | 96 | | |
98 | 97 | | |
99 | | - | |
| 98 | + | |
100 | 99 | | |
101 | 100 | | |
102 | 101 | | |
103 | 102 | | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
108 | 107 | | |
109 | | - | |
110 | | - | |
111 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
112 | 112 | | |
113 | | - | |
114 | | - | |
| 113 | + | |
| 114 | + | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
120 | 125 | | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
| 126 | + | |
| 127 | + | |
140 | 128 | | |
141 | 129 | | |
142 | 130 | | |
| |||
0 commit comments