Skip to content

Commit

Permalink
newly found fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Mar 28, 2023
1 parent ca516fa commit 0578683
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bin/pkg-build
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ for PKG in $PKGS; do
fi

if test -f "$ZIP"; then
gum "# extracing $SRCDIR"
gum "# extracting $SRCDIR"
extract.ts "$ZIP" --pkg "$PKG" --output-dir "$SRCDIR"
else
mkdir -p "$SRCDIR"
Expand Down
7 changes: 5 additions & 2 deletions bin/pkg-docker
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,11 @@ docker run \
--volume "$TEA_PREFIX/tea.xyz/var/www":/root/.tea/tea.xyz/var/www \
--volume /root/.tea/tea.xyz/var/pantry \
--volume /root/.tea/tea.xyz/var/pantries \
--volume "$d":/brewkit \
--volume "$d":$d \
--env GITHUB_TOKEN="$GITHUB_TOKEN" \
--env CLICOLOR_FORCE=1 \
$ADDARGS \
teaxyz/cli \
tea +deno.land /brewkit/bin/pkg-"$arg0" "$@"
tea +deno.land $d/bin/pkg-"$arg0" "$@"

# ^^ `--volume $d:$d` for debugging: so errors in brewkit are paths on the host
4 changes: 2 additions & 2 deletions libexec/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const zipfile = await (async () => {
}
})()

console.log(zipfile!.string)
console.log(zipfile.string)

async function download({ dst, src }: { dst: Path, src: URL }) {
if (Deno.env.get("GITHUB_ACTIONS")) {
Expand All @@ -83,9 +83,9 @@ async function download({ dst, src }: { dst: Path, src: URL }) {
console.error({ dst, src })
throw new Error(`cURL failed to download ${src}`)
}
return dst
} else {
// locally using our download function as it knows how to cache properly
useDownload().download({ dst, src })
}
return dst
}

0 comments on commit 0578683

Please sign in to comment.