Skip to content

Commit a26654f

Browse files
authored
Merge pull request #6765 from kit-ty-kate/full-archive-fix
Fix the placement of the vendored archives in the release tarball
2 parents b5b0235 + 0ce16f3 commit a26654f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

master_changes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ users)
7777
## Infrastructure
7878

7979
## Release scripts
80+
* Fix the placement of the vendored archives in the release tarball [#6765 @kit-ty-kate - fix #6762]
8081

8182
## Install script
8283
* Add `2.5.0~alpha1` to the installers [#6748 @kit-ty-kate]

release/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ $(OUTDIR)/opam-full-$(VERSION).tar.gz:
3333
( set -euo pipefail && \
3434
cd "$(OUTDIR)/opam-full-$(VERSION)" && \
3535
git archive "$(TAG)" \
36-
--prefix "opam-full-$(VERSION)/" \
3736
--mtime "$$(git show -s --format=%ct "$(TAG)" | tail -1)" \
3837
-o "$(abspath $(OUTDIR)/opam-full-$(VERSION).tar)" \
39-
$$(for f in $$(git ls-files -i -o -x '*'); do echo "--add-file=$$f" || exit 1; done) && \
38+
$$(for f in $$(git ls-files -i -o -x '*'); do echo "--prefix=opam-full-$(VERSION)/$$(dirname -- $$f)/ --add-file=$$f" || exit 1; done) \
39+
--prefix "opam-full-$(VERSION)/" && \
4040
gzip --no-name --best "$(abspath $(OUTDIR)/opam-full-$(VERSION).tar)" )
4141
rm -rf "$(OUTDIR)/opam-full-$(VERSION)"
4242

0 commit comments

Comments
 (0)