-
-
Notifications
You must be signed in to change notification settings - Fork 733
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
cake fails to build on travis-ci with latest mono (6.8) #2695
Comments
It's not exclusive to Travis, I have the same problem on my Ubuntu machine after upgrading to Mono 6.8. |
|
I think the exception is thrown here: So |
I think mono/mono#16446 broke this five months ago. It added a check that rejects And adding some more info to that exception reveals
... |
I have the same issue on Travis. Is there any workaround for this? |
Try changing |
Just saw that in the description 🤦♀ . Thanks @HebaruSan , I'm gonna try that. |
Hi there, I have the same problem using cake with mono 6.8.0 on circle-ci |
This seems to be a bug in the Mono runtime, see issue mono/mono#18508 If you have .NET Core installed on the machine you could try executing you script using Cake.Tool. Quick way to bootstrap it would be to use local tools and bootsrap on ci somehing like Good examples in these blog posts: |
The Mono commit that changed this fixed our parsing to be in line with .NET Core, which in turn triggered a Roslyn bug that was relying on our old, broken behavior in some Mono-specific code (see dotnet/roslyn#39369 (comment)). The Roslyn fix is in the 3.5.0-beta1 nuget, so if reasonable cake should try updating to that and things should work smoothly with Mono 6.8. |
Is there a timeline for updating cake to use a newer Microsoft.CodeAnalysis.CSharp.Scripting dependency with the roslyn preview that fixes this issue? |
In general we try not to use preview versions as unstable versions might break other scenarios. |
A version with this fixed is now up on our pre-release NuGet feed |
🎉 This issue has been resolved in version v0.37.0 🎉 The release is available on: Your GitReleaseManager bot 📦🚀 |
What You Are Seeing?
Cake fails to compile and run build script. The error message is.
Error: The assembly name is invalid.
The problem appears to be related to Mono 6.8 - a temporary workaround that has fixed the issue for me was to add the line
mono: 6.6.0
into the below travis.yml.What is Expected?
Cake compiles and runs build script.
What version of Cake are you using?
The below log was generated using Cake 0.32.1, but as part of diagnosing the issue, I updated to 0.36.0 and it didn't make a difference.
I also created a hello world Cake script
Are you running on a 32 or 64 bit system?
What environment are you running on? Windows? Linux? Mac?
travis, linux, csharp environment as below.
Are you running on a CI Server? If so, which one?
travis
yml:
Cake script
How Did You Get This To Happen? (Steps to Reproduce)
A hello world cake script in conjunction with the above travis.yml should be enough to repro this issue.
Output Log
The text was updated successfully, but these errors were encountered: