Skip to content
This repository has been archived by the owner on Mar 15, 2023. It is now read-only.

Commit

Permalink
fix build-deps outputting stuff we need to build
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Dec 20, 2022
1 parent fea7d8a commit 972f071
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scripts/build-deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
const deps = await get_deps(pkg)
const wet = await hydrate(deps)
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)

if (Deno.env.get("GITHUB_ACTIONS")) {
Expand Down

0 comments on commit 972f071

Please sign in to comment.