Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Add --prefix option to
git archive
(#3043)
Without a prefix option, the result of extracting the archive is the repository being laid out flat which requires an extra step of making a directory and changing into it. ` tar -xvf "${SOURCE_TAR}" -C "$BUILD_NAME"`, Change into the directory first, then perform extraction. Running a plain `tar -xvf ghostty-source.tar.gz` on results in the following structures ``` . ├── build.zig ├── build.zig.zon ├── com.mitchellh.ghostty.yml ├── conformance ├── CONTRIBUTING.md ├── dist ├── example ├── flake.lock ├── flake.nix ├── ghostty-source.tar.gz ├── images ├── include ├── macos ├── Makefile ├── nix ├── PACKAGING.md ├── pkg ├── README.md ├── README_TESTERS.md ├── shell.nix ├── src ├── test ├── TODO.md ├── typos.toml └── vendor ``` With a prefix, extracted contents are kept under a top-level directory ``` . ├── ghostty-source │ ├── build.zig │ ├── build.zig.zon │ ├── com.mitchellh.ghostty.yml │ ├── conformance │ ├── CONTRIBUTING.md │ ├── dist │ ├── example │ ├── flake.lock │ ├── flake.nix │ ├── images │ ├── include │ ├── macos │ ├── Makefile │ ├── nix │ ├── PACKAGING.md │ ├── pkg │ ├── README.md │ ├── README_TESTERS.md │ ├── shell.nix │ ├── src │ ├── test │ ├── TODO.md │ ├── typos.toml │ └── vendor └── ghostty-source.tar.gz ``` This would be a breaking change for scripts depending on the current archive format but it I think is easier to work with and a change that should be made before 1.0.
- Loading branch information