Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
501001ff
Unverified
Commit
501001ff
authored
May 20, 2019
by
Steven Allen
Committed by
GitHub
May 20, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6349 from ipfs/fix/mk-source-tarball-tempdir
fix vendoring dependencies when building the source tarball
parents
f043bb7f
8d857bab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
bin/maketarball.sh
bin/maketarball.sh
+5
-5
No files found.
bin/maketarball.sh
View file @
501001ff
...
@@ -13,14 +13,14 @@ fi
...
@@ -13,14 +13,14 @@ fi
GOCC
=
${
GOCC
=go
}
GOCC
=
${
GOCC
=go
}
TMP
DIR
=
"
$(
mktemp
-d
)
"
T
E
MP
=
"
$(
mktemp
-d
)
"
cp
-r
.
"
$TMP
DIR
"
cp
-r
.
"
$T
E
MP
"
(
cd
"
$TMP
DIR
"
&&
(
cd
"
$T
E
MP
"
&&
echo
$PWD
&&
echo
$PWD
&&
$GOCC
mod vendor
&&
$GOCC
mod vendor
&&
(
git describe
--always
--match
=
NeVeRmAtCh
--dirty
2>/dev/null
||
true
)
>
.tarball
&&
(
git describe
--always
--match
=
NeVeRmAtCh
--dirty
2>/dev/null
||
true
)
>
.tarball
&&
chmod
-R
u
=
rwX,go
=
rX
"
$TMP
DIR
"
# normalize permissions
chmod
-R
u
=
rwX,go
=
rX
"
$T
E
MP
"
# normalize permissions
tar
-czf
"
$OUTPUT
"
--exclude
=
"./.git"
.
tar
-czf
"
$OUTPUT
"
--exclude
=
"./.git"
.
)
)
rm
-rf
"
$TMP
DIR
"
rm
-rf
"
$T
E
MP
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment