-
-
Notifications
You must be signed in to change notification settings - Fork 730
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
Error: Bad IL format with Cake MacOSX (2.3.0 - 3.1.0) #3996
Comments
Thanks @moljac. If I understand correctly, these builds seem to work fine on Cake v2.2.0 but break on v2.3.0 Any chance you can get a repro of one of these repos running on GitHub Actions? |
Well right now I get it with cake 3.0, so I downgrade to 2.3.0.
I can try.
Yeah those are looong builds. AX 45 minutes to 1 hour and GPS-FB-MLKit 1.5-2 hrs. I will try to use 3.0.0 and see if I can repro something. |
error I get on MacOSX Ventura:
cake version:
Looks like some transitive dependencies cause this. quite old packages: https://www.nuget.org/packages/runtime.native.System.Security.Cryptography.Apple/4.3.0 Commands that should repro (with cake 3.0 installed): git clone --recursive https://github.com/xamarin/GooglePlayServicesComponents.git
cd GooglePlayServicesComponents/
dotnet tool uninstall --global Cake.Tool && dotnet tool install --global Cake.Tool --version 3.0.0
dotnet cake -t=ci && dotnet cake utilities.cake -t=tools-executive-order |
Thanks @moljac just to confirm, are you building on Mac with an ARM processor? |
No. Intel. x86 |
Hi seems like
transitively pulls in some older packages. xamarin/GooglePlayServicesComponents#766 (comment) Let me update dependencies for the package and report it here |
No that was not the case! After updates still getting this error. |
diagnostic output
|
|
The bug is in cake/src/Cake.Core/IO/FileExtensions.cs Line 112 in b55239f
Consider this program: using Cake.Core.IO;
class App {
public static void Main (string[] args) {
var fs = new FileSystem();
foreach (var s in args) {
var f = fs.GetFile(s);
Console.WriteLine (f.IsClrAssembly());
}
}
} Compile it against The bug is that
|
🎉 This issue has been resolved in version v3.2.0 🎉 The release is available on: Your GitReleaseManager bot 📦🚀 |
Prerequisites
Cake runner
Cake .NET Tool
Cake version
2.3.0
3.0.0
3.1.0
Operating system
macOS
Operating system architecture
64-Bit
CI Server
Azure DevOps
What are you seeing?
Running builds for (AndroidX and GooglePlayServices-Firebase-MLKit) both locally and on CI with Cake 2.3.0 there is an error.
Stripped for search:
from CI server:
What is expected?
correct build
Steps to Reproduce
ping me in the comments if you need scripts to repro (installing, cloning, building)
Output log
too long
The text was updated successfully, but these errors were encountered: