deno needs cargo to build (#14)

* deno needs cargo to build

* can't pre-clean the deno dirs
This commit is contained in:
Jacob Heider 2022-11-01 12:14:07 -04:00 committed by GitHub
parent ec66fc4628
commit 97c055f0ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -31,6 +31,7 @@ build:
dependencies: dependencies:
git-scm.org: 2 # to build tinycc git-scm.org: 2 # to build tinycc
rust-lang.org: 1 rust-lang.org: 1
rust-lang.org/cargo: ^0.65
llvm.org: '>=13' # macOS/aarch64 requires this (FIXME only dep where needed) llvm.org: '>=13' # macOS/aarch64 requires this (FIXME only dep where needed)
curl.se: '*' # required to download v8 (python is another option) curl.se: '*' # required to download v8 (python is another option)
tea.xyz/gx/make: '*' # required to build the libffi parts tea.xyz/gx/make: '*' # required to build the libffi parts

View file

@ -49,7 +49,8 @@ async function __build(pkg: Package): Promise<BuildResult> {
async function clean() { async function clean() {
const installation = await should_clean() const installation = await should_clean()
if (installation) { // If we clean deno.land, it breaks the rest of the process.
if (installation && installation.pkg.project !== "deno.land") {
console.log({ cleaning: installation.path }) console.log({ cleaning: installation.path })
for await (const [path] of installation.path.ls()) { for await (const [path] of installation.path.ls()) {
// we delete contents rather than the directory itself to prevent broken vx.y symlinks // we delete contents rather than the directory itself to prevent broken vx.y symlinks