mirror of
https://github.com/ivabus/pantry
synced 2024-11-27 02:35:08 +03:00
fix build-deps outputting stuff we need to build
This commit is contained in:
parent
fea7d8ad6d
commit
972f0715f4
1 changed files with 8 additions and 1 deletions
|
@ -32,13 +32,20 @@ const get_deps = async (pkg: Package | PackageRequirement) => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const rv: PackageRequirement[] = []
|
const bootstrap_required = new Set<string>()
|
||||||
|
const set = new Set<string>()
|
||||||
|
let rv: PackageRequirement[] = []
|
||||||
for await (const pkg of ARGV.pkgs()) {
|
for await (const pkg of ARGV.pkgs()) {
|
||||||
const deps = await get_deps(pkg)
|
const deps = await get_deps(pkg)
|
||||||
const wet = await hydrate(deps)
|
const wet = await hydrate(deps)
|
||||||
rv.push(...wet.pkgs)
|
rv.push(...wet.pkgs)
|
||||||
|
set.add(pkg.project)
|
||||||
|
wet.bootstrap_required.forEach(x => bootstrap_required.add(x))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// we don’t want to pre-install packages we intend to build
|
||||||
|
rv = rv.filter(({ project }) => !set.has(project) || bootstrap_required.has(project))
|
||||||
|
|
||||||
const gas = rv.map(pkg.str)
|
const gas = rv.map(pkg.str)
|
||||||
|
|
||||||
if (Deno.env.get("GITHUB_ACTIONS")) {
|
if (Deno.env.get("GITHUB_ACTIONS")) {
|
||||||
|
|
Loading…
Reference in a new issue