-
Notifications
You must be signed in to change notification settings - Fork 6
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
DirectoryNotFoundException in Docker Build #354
Comments
worth mentioning if you create a container from last succeeded layer (that |
I've seen that before but it seemed random.
|
thanks for the comment, it's deterministic yes, let me try to test w/ turned off parallelism |
still same issue w/ project structure:
|
our attempts with different metalama versions ( tests are passed when running in a container from last succeeded docker layer: @gfraiteur if needed we can come up with a demo for repro |
Hello @anurmatov . May I ask you to collect logs of the failing build? Collecting Metalama logs is described at https://doc.postsharp.net/metalama/conceptual/configuration/creating-logs . Before we figure this out, a workaround may be to build an empty project with Metalama installed before building the rest of your projects. The version of Metalama in the project must match the version used in your project. |
hello @prochan2, trying to get a workaround to work - no luck yet |
@anurmatov This was fixed in 2024.2.21, the |
Environment
Metalama.Framework Version: 2024.2.19
Runtime: .NET 8.0.1
OS: Debian GNU/Linux 12 (bookworm)
Docker Base Image: mcr.microsoft.com/dotnet/sdk:8.0-bookworm-slim
Issue Description
During our Docker build process, Metalama is encountering a DirectoryNotFoundException. The build (same with
dotnet test
) fails when trying to access a directory that doesn't exist.Error message
Stack Trace
from metalama crash log file:
Dockerfile
Additonal context
The text was updated successfully, but these errors were encountered: