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

Problems with .NET 8 on build server (alpine amd64) with nuget path set #159

Closed
inf9144 opened this issue Nov 29, 2023 · 2 comments
Closed

Comments

@inf9144
Copy link

inf9144 commented Nov 29, 2023

Describe the bug
After upgrading to .NET 8 the build server is not able to compile our solution anymore.

/builds/X/X/.nuget/aspnetcore.sasscompiler/1.69.5/build/AspNetCore.SassCompiler.targets(11,5): error : Error running sass compiler: /builds/X/X/.nuget/aspnetcore.sasscompiler/1.69.5/build/../runtimes/linux-x64/sass: exec: line 20: /builds/X/X/.nuget/aspnetcore.sasscompiler/1.69.5/runtimes/linux-x64/src/dart: not found [/builds/X/X/XYZ/ABC/ABC/ABC.csproj]

To Reproduce
Use dotnet restore/run/build/test with --packages referencing a directory (relative path) like .nuget like:

dotnet restore --packages .nuget
dotnet build --no-restore
dotnet test --no-restore --no-build

Expected behavior
Would expect that dart is found and SassCompiler works as normal.

System
Container: mcr.microsoft.com/dotnet/sdk:8.0.100-1-alpine3.18-amd64

Additional context
In the local folder on my windows (with .nuget sitting in C:\user\XXX\.nuget) i can see the 'dart' file in the folder where the build script under linux says it's missing.

@czkawka
Copy link

czkawka commented Dec 15, 2023

Hey,
Try add RUN apk add gcompat
before dotnet build

Source: sass/dart-sass-embedded#85

@sleeuwen
Copy link
Collaborator

Thanks @czkawka for providing the solution, I've tested it myself and that works indeed.

I'll add this to the readme as well so it can easily be found in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants