Open samhowes opened 3 years ago
The csc build process that gets started appears to not have permissions to write the the desired directories in the sandboxes on linux:
CSC : error CS2012: Cannot open '/home/vsts/.cache/bazel/_bazel_vsts/5c27df7f718ab35828b0e0cfe0993663/sandbox/linux-sandbox/62/execroot/rules_msbuild/bazel-out/k8-fastbuild/bin/tests/examples/Grpc/Protos/obj/netcoreapp3.1/Protos.Net.dll' for writing -- 'Read-only file system'
I think [persistent workers](https://docs.bazel.build/versions/main/persistent-workers.html_ is actually the intended solution for situations like this
I saw the message
From the binlog on az ubuntu when a build failed.
This led to this SO post: https://stackoverflow.com/questions/47590068/what-means-the-using-shared-compilation-with-compiler-from-directory-messag
Setting
UseSharedCompilation
tofalse
got the build to succeed, but apparently slows down the build. As such, this issue can be closed, and a new optimization issue can be opened._Originally posted by @samhowes in https://github.com/samhowes/my_rules_dotnet/issues/33#issuecomment-809529789_