Skip to content

Commit e1c7e7e

Browse files
committed
wip
1 parent b8035fa commit e1c7e7e

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

projects/git-scm.org/build.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
import { BuildOptions, inreplace, Path, run, unarchive } from "brewkit";
22

3-
export default async function ({ prefix, version, props }: BuildOptions) {
4-
await unarchive(
5-
`https://mirrors.edge.kernel.org/pub/software/scm/git/git-${version}.tar.gz`,
6-
);
3+
export default async function ({ prefix, version, props, tag }: BuildOptions) {
4+
// the official source tarballs have some files that make windows barf
5+
// whatever tar utility we use
6+
const url = `https://mirrors.edge.kernel.org/pub/software/scm/git/git-${version}.tar.gz`;
7+
8+
try {
9+
await unarchive(url);
10+
} catch (err) {
11+
// all versions we can find of git fail to expand a few files in the archive
12+
// on windows, but everything we need is there, so continue
13+
if (Deno.build.os != 'windows') throw err;
14+
}
715

816
if (Deno.build.os != "windows") {
917
props.join("config.mak").cp({ into: Path.cwd() });

0 commit comments

Comments
 (0)