mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 00:45:07 +03:00
deno needs cargo to build (#14)
* deno needs cargo to build * can't pre-clean the deno dirs
This commit is contained in:
parent
ec66fc4628
commit
97c055f0ea
2 changed files with 3 additions and 1 deletions
|
@ -31,6 +31,7 @@ build:
|
|||
dependencies:
|
||||
git-scm.org: 2 # to build tinycc
|
||||
rust-lang.org: 1
|
||||
rust-lang.org/cargo: ^0.65
|
||||
llvm.org: '>=13' # macOS/aarch64 requires this (FIXME only dep where needed)
|
||||
curl.se: '*' # required to download v8 (python is another option)
|
||||
tea.xyz/gx/make: '*' # required to build the libffi parts
|
||||
|
|
|
@ -49,7 +49,8 @@ async function __build(pkg: Package): Promise<BuildResult> {
|
|||
|
||||
async function 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 })
|
||||
for await (const [path] of installation.path.ls()) {
|
||||
// we delete contents rather than the directory itself to prevent broken vx.y symlinks
|
||||
|
|
Loading…
Reference in a new issue