-
Notifications
You must be signed in to change notification settings - Fork 904
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
choco pack
command fails with error on Linux when using file greater than 2 GB
#2278
Comments
I am able to reproduce this. I created a 3gb file with Log
|
This appears to be an issue with mono: |
This was fixed by #2740, as the new NuGet Client libraries use a different method to write the |
choco pack
command fails with error on Linux when using file greater than 2 GB
🎉 This issue has been resolved in version 2.0.0 🎉 The release is available on: Your GitReleaseManager bot 📦🚀 |
Running this on latest stable version of mono and choco with 64 bit. System have enough resources still we are facing this issue.
System.IO.IOException: Stream was too long.
at System.IO.MemoryStream.Write (System.Byte[] buffer, System.Int32 offset, System.Int32 count) [0x00067] in :0
at System.IO.Packaging.ZipPartStream.Write (System.Byte[] buffer, System.Int32 offset, System.Int32 count) [0x00027] in <900d166c3e9f4f979a5029af353f68ca>:0
at System.IO.Stream.CopyTo (System.IO.Stream destination, System.Int32 bufferSize) [0x00016] in :0
at System.IO.Stream.CopyTo (System.IO.Stream destination) [0x00007] in :0
at (wrapper remoting-invoke-with-check) System.IO.Stream.CopyTo(System.IO.Stream)
at NuGet.PackageBuilder.CreatePart (System.IO.Packaging.Package package, System.String path, System.IO.Stream sourceStream) [0x00031] in <23136ac9008c43ea82679714836f769c>:0
at NuGet.PackageBuilder.WriteFiles (System.IO.Packaging.Package package) [0x00043] in <23136ac9008c43ea82679714836f769c>:0
at NuGet.PackageBuilder.Save (System.IO.Stream stream) [0x000ca] in <23136ac9008c43ea82679714836f769c>:0
at chocolatey.infrastructure.app.nuget.NugetPack.BuildPackage (NuGet.PackageBuilder builder, chocolatey.infrastructure.filesystem.IFileSystem fileSystem, System.String outputPath) [0x00044] in <208749e11a5d442db77f2fd2ce0f8b25>:0
at chocolatey.infrastructure.app.services.NugetService.pack_run (chocolatey.infrastructure.app.configuration.ChocolateyConfiguration config) [0x00219] in <208749e11a5d442db77f2fd2ce0f8b25>:0
at chocolatey.infrastructure.app.services.ChocolateyPackageService.pack_run (chocolatey.infrastructure.app.configuration.ChocolateyConfiguration config) [0x00020] in <208749e11a5d442db77f2fd2ce0f8b25>:0
at chocolatey.infrastructure.app.commands.ChocolateyPackCommand.run (chocolatey.infrastructure.app.configuration.ChocolateyConfiguration configuration) [0x00000] in <208749e11a5d442db77f2fd2ce0f8b25>:0
at chocolatey.infrastructure.app.runners.GenericRunner.run (chocolatey.infrastructure.app.configuration.ChocolateyConfiguration config, SimpleInjector.Container container, System.Boolean isConsole, System.Action`1[T] parseArgs) [0x000e4] in <208749e11a5d442db77f2fd2ce0f8b25>:0
at chocolatey.infrastructure.app.runners.ConsoleApplication.run (System.String[] args, chocolatey.infrastructure.app.configuration.ChocolateyConfiguration config, SimpleInjector.Container container) [0x000d6] in <208749e11a5d442db77f2fd2ce0f8b25>:0
at chocolatey.console.Program.Main (System.String[] args) [0x0036a] in <51670c769f7b4c16baf62bcf1e2167c6>:0
Exiting with 1
The text was updated successfully, but these errors were encountered: