-
Notifications
You must be signed in to change notification settings - Fork 28
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
v1.74.1 broke CI build on ubuntu #178
Comments
Happy to help debug on a PR on our site. |
Hi @mikes-gh , thanks for reporting the issue, sadly I don't have time to check this today but it might be helpful if you could run a build/publish with diagnostic logging enabled (add -v:diag to the dotnet publish command), that should show a target "CompileSass" and why it it might be skipped or if it's not skipped it shows the exact sass commands which are executed. I think I should have time to check this myself tomorrow. |
Hi @mikes-gh , I've had some time to debug this and was able to reproduce the same issue you were having in the CI build with a local docker container. I believe I found the problem and why it only occurs on the latest version. (sorry for the long write-up, this took a bit of time to figure out, and I found it interesting, so here is a full explanation of how I came to this conclusion 😛) First some background, we had recently received an issue that when using So what does this have to do with the issue you're having? With the diagnostic logging enabled, I noticed that the Compile Sass task for the MudBlazor project ran, but it didn't return any outputs. This means that the sass command we executed didn't change any files (which can happen if the output file is already up-to-date, as we use the --update flag). But it was a clean project so the .css definitely wasn't there before running So, this is what happens:
So, (TLDR?) With the previous 1.72.0, the I'm not sure there is something we are able to do about this, as we rely on the output of the sass command to tell which files are generated, and as you're allowed to supply a folder as well as a file we don't want to have the logic of what file would get generated in what case within the library and would have to keep that in sync with the sass project. Maybe now that you know why the problem occurs there is something you can change to avoid this problem? One way I could think of is, there are a few MSBuild properties that we use to pass the required information to the Compile Sass task, two of which are I hope this helps you at least with determining a way to fix the problem, if we can help with getting a solution working let us know. |
@sleeuwen I appreciate your in depth review of the situation. I will need to read it a few times to get the full picture. Since this is a multi project solution the msbuild order of events is not straight forward. Is there any way of overriding the |
That is not possible no, we add the |
Describe the bug
It seems the latest update breaks our CI build.
The CSS is just not there or in the wrong place (not sure which) but I see nothing in the logs either.
Building locally on macOS seems fine too.
I suspect the linux64 runtime.
To Reproduce
Steps to reproduce the behaviour:
https://github.com/MudBlazor/MudBlazor/actions/runs/8606643719
Expected behaviour
CSS is deployed to the website.
The text was updated successfully, but these errors were encountered: