Skip to content

Commit

Permalink
Merge pull request #256 from xen0n/fix-source-tarball-layour
Browse files Browse the repository at this point in the history
Fix directory layout of source tarballs
  • Loading branch information
xen0n authored Jan 6, 2025
2 parents e88263b + 527087e commit 8ee81b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/make-reproducible-source-tarball.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ main() {

git clone "$REPO_ROOT" "$TMPDIR/$staging_dirname"
pushd "$TMPDIR/$staging_dirname" > /dev/null

# remove Git metadata
rm -rf .git

# set all file timestamps to $SOURCE_EPOCH
find . -exec touch -md "$source_epoch" '{}' '+'
popd > /dev/null

reproducible_tar -cf - . | reproducible_gzip > "$dest_dir/$artifact_name"
pushd "$TMPDIR" > /dev/null
reproducible_tar -cf - "./$staging_dirname" | reproducible_gzip > "$dest_dir/$artifact_name"
popd > /dev/null

echo "info: repo HEAD content is reproducibly packed at $dest_dir/$artifact_name"
Expand Down

0 comments on commit 8ee81b4

Please sign in to comment.