mirror of
https://github.com/quamotion/dotnet-packaging.git
synced 2026-02-16 21:36:51 +00:00
[PR #133] [MERGED] Test & fix extracting .tar.gz packages on macOS #250
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/quamotion/dotnet-packaging/pull/133
Author: @qmfrederik
Created: 11/29/2019
Status: ✅ Merged
Merged: 11/29/2019
Merged by: @qmfrederik
Base:
master← Head:fixes/tarball📝 Commits (7)
a72ccdaTest extracting .tar.gz packages on macOSe02c9d7Bump SharpZipLib version7f19d0eUse built-in ArchiveBuilder and TarFileCreator to create .tar.gz filesf35ee6dDebTask: Be more conservative when adding directories1794185ArchiveEntry: Don't use prefix when not needed262aef6Use GZipStream instead of GZipOutputStream711916cTarFileCreator: Support streams which don't report on their current Position📊 Changes
10 files changed (+214 additions, -69 deletions)
View changed files
➕
.azure-pipelines-shared.yml(+31 -0)📝
.azure-pipelines.yml(+43 -30)📝
Packaging.Targets.Tests/Deb/DebTaskTests.cs(+70 -1)📝
Packaging.Targets/ArchiveBuilder.cs(+8 -1)📝
Packaging.Targets/DebTask.cs(+9 -5)📝
Packaging.Targets/IO/TarFileCreator.cs(+17 -5)📝
Packaging.Targets/Packaging.Targets.csproj(+3 -6)📝
Packaging.Targets/StreamExtensions.cs(+2 -1)📝
Packaging.Targets/TarballTask.cs(+27 -19)📝
Packaging.Targets/build/Packaging.Targets.targets(+4 -1)📄 Description
The output from
dotnet tarballincludes an empty nameless directory (see #52). This causestar xvzf {output}to fail on macOS:The Tarball uses SharpZipLib and the error seems to originate from there. dotnet-packaging now ships with its own implementation for writing .tar files, so use that instead.
Fixes a couple of bugs/adds unit tests as well:
DebTask.EnsureDirectories/or.as root for file namesTarFileCreatordoesn't require theStreamto which it is writing to report on itsPosition, but calculates the position locally.Fixes #52
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.