Skip to content
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

ICSharpCode.SharpZipLib.Tar.TarException : Entry closed at '0' before the '9630' bytes specified in the header were written #609

Closed
Omrisha opened this issue Oct 12, 2022 · 6 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@Omrisha
Copy link

Omrisha commented Oct 12, 2022

Describe the bug
When running the test of the Weather Forecast project getting an error with TAR archive operation.

To Reproduce
Steps to reproduce the behavior:

  1. Clone testcontainers-dotent repo
  2. open SLN file in visual studio (I used visual studio 2022)
  3. Build solution
  4. Go to test explorer
  5. Run the tests and get the issue.

Expected behavior
The tests will be completed successfully with no TAR exception

Screenshots
image

Additional context
I'm on Windows 11, using visual studio 2022 and docker version 4.12.0.

@HofmeisterAn
Copy link
Collaborator

HofmeisterAn commented Oct 12, 2022

Oh, that one is interesting. Can you add .vs (probably .idea too) to the .dockerignore file (https://github.com/testcontainers/testcontainers-dotnet/blob/develop/examples/WeatherForecast/.dockerignore) and try it again? I am pretty sure this will fix it.

@HofmeisterAn HofmeisterAn added the bug Something isn't working label Oct 12, 2022
@HofmeisterAn HofmeisterAn added this to the 2.2.0 milestone Oct 12, 2022
@Omrisha
Copy link
Author

Omrisha commented Oct 12, 2022

@HofmeisterAn Hey, I added .vs and .idea to .dockerignore and it worked. Do you know why this caused a problem?

@Omrisha Omrisha closed this as completed Oct 12, 2022
@Omrisha Omrisha reopened this Oct 12, 2022
@Omrisha
Copy link
Author

Omrisha commented Oct 12, 2022

Also when I could use CommonDirectoryPath in order to make docker image in my project like your project?

@HofmeisterAn
Copy link
Collaborator

HofmeisterAn commented Oct 12, 2022

Visual Studio has some exclusive file access. We cannot put those files into the tarball. I will add a fix later that day.

Also when I could use CommonDirectoryPath in order to make docker image in my project like your project?

You can use anywhere you want. Just make sure it can resolve the right files in the directory tree.

@Omrisha
Copy link
Author

Omrisha commented Oct 12, 2022

@HofmeisterAn when it will be available on the nuget package?

@HofmeisterAn
Copy link
Collaborator

@HofmeisterAn when it will be available on the nuget package?

It is part of the latest snapshot release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants