-
-
Notifications
You must be signed in to change notification settings - Fork 287
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
Build an image running with Nuke gives TarException #618
Comments
Is VS running? Exclude the Or another process is blocking a file. In your case you probably need to exclude the Nuke binaries. I assume they have something similar like Cake's tool directory.. |
The .NET implementations use Glob pattern matching, it looks like there are more cases covered by Docker or Go. As far as I know, Try the following:
OC, |
@HofmeisterAn changing the glob to |
👍 I will reopen it. It makes sense to support |
Describe the bug
I use Nuke to automate a lot of tasks on my projects, like tests environment configuration, and I did not have any problem running containers with it.
But, when I try to build an image I'm getting:
This happens if I run a test, csproj, or even if I put the build logic inside the Nuke Target.
If I run the logic outside Nuke everything works as expected
To Reproduce
Just try to build an image with/from a Nuke target
I made an example to demonstrate the bug:
https://github.com/lucasteles/nuke-testcontainers
If you run on the repository root:
it will work as normal
To get the error run on the repository root :
Expected behavior
Should not throw an exception when running from Nuke
The text was updated successfully, but these errors were encountered: