Skip to content

Commit

Permalink
Merge pull request #6349 from ipfs/fix/mk-source-tarball-tempdir
Browse files Browse the repository at this point in the history
fix vendoring dependencies when building the source tarball
  • Loading branch information
Stebalien authored May 20, 2019
2 parents f043bb7 + 8d857ba commit 501001f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bin/maketarball.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ fi

GOCC=${GOCC=go}

TMPDIR="$(mktemp -d)"
cp -r . "$TMPDIR"
( cd "$TMPDIR" &&
TEMP="$(mktemp -d)"
cp -r . "$TEMP"
( cd "$TEMP" &&
echo $PWD &&
$GOCC mod vendor &&
(git describe --always --match=NeVeRmAtCh --dirty 2>/dev/null || true) > .tarball &&
chmod -R u=rwX,go=rX "$TMPDIR" # normalize permissions
chmod -R u=rwX,go=rX "$TEMP" # normalize permissions
tar -czf "$OUTPUT" --exclude="./.git" .
)

rm -rf "$TMPDIR"
rm -rf "$TEMP"

0 comments on commit 501001f

Please sign in to comment.