Skip to content

Commit

Permalink
chore: update tar import
Browse files Browse the repository at this point in the history
  • Loading branch information
sweatybridge committed Apr 17, 2024
1 parent 7167ca0 commit b63f336
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/postinstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import fetch from "node-fetch";
import { Agent } from "https";
import { HttpsProxyAgent } from "https-proxy-agent";
import path from "path";
import tar from "tar";
import { extract } from "tar";
import zlib from "zlib";

// Mapping from Node's `process.arch` to Golang's `$GOARCH`
Expand Down Expand Up @@ -111,7 +111,7 @@ async function main() {
// First we will Un-GZip, then we will untar.
const ungz = zlib.createGunzip();
const binName = path.basename(binPath);
const untar = tar.x({ cwd: binDir }, [binName]);
const untar = extract({ cwd: binDir }, [binName]);

const url = getDownloadUrl(pkg);
console.info("Downloading", url);
Expand Down

0 comments on commit b63f336

Please sign in to comment.