mirror of
https://github.com/ivabus/pantry
synced 2025-06-08 08:20:32 +03:00
Stop cleaning make before building make
This commit is contained in:
parent
d3ad7ec109
commit
d680562710
1 changed files with 4 additions and 1 deletions
|
@ -63,9 +63,12 @@ for (const pkgrq of dry) {
|
|||
const wet = await hydrate(deps.runtime, pkg => pantry.getDeps(pkg).then(x => x.runtime))
|
||||
deps.runtime.push(...wet.pkgs)
|
||||
|
||||
// only required as we aren't passing everything into hydrate
|
||||
const depends_on_self = () => deps.build.some(x => x.project === pkg.project)
|
||||
|
||||
// provided this package doesn't transitively depend on itself (yes this happens)
|
||||
// clean out the destination prefix first
|
||||
if (!wet.bootstrap_required.has(pkg.project)) {
|
||||
if (!wet.bootstrap_required.has(pkg.project) && !depends_on_self()) {
|
||||
const installation = await cellar.isInstalled(pkg)
|
||||
if (installation) {
|
||||
console.log({ cleaning: installation.path })
|
||||
|
|
Loading…
Reference in a new issue