Build error for commit a6910fe417b66ed76dc2a2326416d3a366c4a708
christophwille opened this issue · 2 comments
christophwille commented
For: a6910fe (recursive checkout)
Running on Windows 10 with Docker Desktop latest, docker compose up -d fails (in Windows Terminal with PS 7.4.1)
=> ERROR [distributor build 10/10] RUN dotnet build "Mocha.Distributor.csproj" -c Release -o /app/build 5.7s
=> [jaeger-query build 8/10] COPY . . 0.1s
=> [jaeger-query build 9/10] WORKDIR /src/src/Mocha.Query.Jaeger 0.0s
=> CANCELED [jaeger-query build 10/10] RUN dotnet build "Mocha.Query.Jaeger.csproj" -c Release -o /app/build 4.9s
------
> [distributor build 10/10] RUN dotnet build "Mocha.Distributor.csproj" -c Release -o /app/build:
0.592 MSBuild version 17.8.3+195e7f5a3 for .NET
1.133 Determining projects to restore...
2.182 All projects are up-to-date for restore.
4.762 Mocha.Protocol.Generated -> /app/build/Mocha.Protocol.Generated.dll
5.551 /src/src/Mocha.Core/Models/Trace/OTelToMochaSpanConversionExtensions.cs(6,7): error CS0246: The type or namespace name 'OpenTelemetry' could not be found (are you missing a using directive or an assembly reference?) [/src/src/Mocha.Core/Mocha.Core.csproj]
5.551 /src/src/Mocha.Core/Models/Trace/OTelToMochaSpanConversionExtensions.cs(7,7): error CS0246: The type or namespace name 'OpenTelemetry' could not be found (are you missing a using directive or an assembly reference?) [/src/src/Mocha.Core/Mocha.Core.csproj]
5.552 /src/src/Mocha.Core/Models/Trace/OTelToMochaSpanConversionExtensions.cs(8,7): error CS0246: The type or namespace name 'OpenTelemetry' could not be found (are you missing a using directive or an assembly reference?) [/src/src/Mocha.Core/Mocha.Core.csproj]
5.552 /src/src/Mocha.Core/Storage/ISpanWriter.cs(5,7): error CS0246: The type or namespace name 'OpenTelemetry' could not be found (are you missing a using directive or an assembly reference?) [/src/src/Mocha.Core/Mocha.Core.csproj]
5.552 /src/src/Mocha.Core/Models/Trace/OTelToMochaSpanConversionExtensions.cs(14,46): error CS0305: Using the generic type 'Span<T>' requires 1 type arguments [/src/src/Mocha.Core/Mocha.Core.csproj]
5.552 /src/src/Mocha.Core/Models/Trace/OTelToMochaSpanConversionExtensions.cs(14,57): error CS0246: The type or namespace name 'Resource' could not be found (are you missing a using directive or an assembly reference?) [/src/src/Mocha.Core/Mocha.Core.csproj]
5.552 /src/src/Mocha.Core/Models/Trace/OTelToMochaSpanConversionExtensions.cs(59,57): error CS0305: Using the generic type 'Span<T>' requires 1 type arguments [/src/src/Mocha.Core/Mocha.Core.csproj]
5.552 /src/src/Mocha.Core/Models/Trace/OTelToMochaSpanConversionExtensions.cs(69,55): error CS0305: Using the generic type 'Span<T>' requires 1 type arguments [/src/src/Mocha.Core/Mocha.Core.csproj]
5.552 /src/src/Mocha.Core/Models/Trace/OTelToMochaSpanConversionExtensions.cs(82,57): error CS0246: The type or namespace name 'KeyValue' could not be found (are you missing a using directive or an assembly reference?) [/src/src/Mocha.Core/Mocha.Core.csproj]
5.578
5.579 Build FAILED.
5.580
5.580 /src/src/Mocha.Core/Models/Trace/OTelToMochaSpanConversionExtensions.cs(6,7): error CS0246: The type or namespace name 'OpenTelemetry' could not be found (are you missing a using directive or an assembly reference?) [/src/src/Mocha.Core/Mocha.Core.csproj]
5.580 /src/src/Mocha.Core/Models/Trace/OTelToMochaSpanConversionExtensions.cs(7,7): error CS0246: The type or namespace name 'OpenTelemetry' could not be found (are you missing a using directive or an assembly reference?) [/src/src/Mocha.Core/Mocha.Core.csproj]
5.580 /src/src/Mocha.Core/Models/Trace/OTelToMochaSpanConversionExtensions.cs(8,7): error CS0246: The type or namespace name 'OpenTelemetry' could not be found (are you missing a using directive or an assembly reference?) [/src/src/Mocha.Core/Mocha.Core.csproj]
5.580 /src/src/Mocha.Core/Storage/ISpanWriter.cs(5,7): error CS0246: The type or namespace name 'OpenTelemetry' could not be found (are you missing a using directive or an assembly reference?) [/src/src/Mocha.Core/Mocha.Core.csproj]
5.580 /src/src/Mocha.Core/Models/Trace/OTelToMochaSpanConversionExtensions.cs(14,46): error CS0305: Using the generic type 'Span<T>' requires 1 type arguments [/src/src/Mocha.Core/Mocha.Core.csproj]
5.580 /src/src/Mocha.Core/Models/Trace/OTelToMochaSpanConversionExtensions.cs(14,57): error CS0246: The type or namespace name 'Resource' could not be found (are you missing a using directive or an assembly reference?) [/src/src/Mocha.Core/Mocha.Core.csproj]
5.580 /src/src/Mocha.Core/Models/Trace/OTelToMochaSpanConversionExtensions.cs(59,57): error CS0305: Using the generic type 'Span<T>' requires 1 type arguments [/src/src/Mocha.Core/Mocha.Core.csproj]
5.580 /src/src/Mocha.Core/Models/Trace/OTelToMochaSpanConversionExtensions.cs(69,55): error CS0305: Using the generic type 'Span<T>' requires 1 type arguments [/src/src/Mocha.Core/Mocha.Core.csproj]
5.580 /src/src/Mocha.Core/Models/Trace/OTelToMochaSpanConversionExtensions.cs(82,57): error CS0246: The type or namespace name 'KeyValue' could not be found (are you missing a using directive or an assembly reference?) [/src/src/Mocha.Core/Mocha.Core.csproj]
5.581 0 Warning(s)
5.581 9 Error(s)
5.582
5.582 Time Elapsed 00:00:04.82
------
failed to solve: process "/bin/sh -c dotnet build \"Mocha.Distributor.csproj\" -c $BUILD_CONFIGURATION -o /app/build" did not complete successfully: exit code: 1
christophwille commented
The interesting thing is that these errors don't reproduce when opening mocha.sln in Visual Studio and building debug or release.
christophwille commented
Running docker compose up -d
again - and it magically no longer shows the error. Something must have gone wrong on the first run of the command without showing in the log properly?