Open knocte opened 5 years ago
@knocte is there a reason that you are raising this issue here, rather than on that repository? While we would love to, the Cake Team isn't responsible for every build script that is created using Cake.
the Cake Team isn't responsible for every build script
I know that. However, a TypeLoadException inside Cake seems like a bug in Cake, and not a bug in a build script. In fact, I've proposed a PR to fix their build, but just by using the workaround of pinning to 0.26.1 (while 0.30.0 is still crashing). I'm guessing that you don't want all Cake users to stay in 0.26.1...?
Is it an bug in Cake? Looks like Cake.MonoApiTools 3.0.0 targets 0.26.1.0. But 3.0.1 targets 0.30.0, tried updating all addins to latest version.
Looks like Cake.MonoApiTools...
Oh I didn't know about these tools
Cake.MonoApiTools 3.0.0 targets 0.26.1.0
Where's that version? Not listed in https://www.nuget.org/packages/Cake.MonoApiTools
Having had a quick look at the source code, I think the issue is here:
The generic type CakeTaskBuilder<ActionTask>
was removed in Cake 0.28.0. As a result, in order for the build for that project to work on anything higher than what it currently works on, you would need to update the Cake.Xamarin.Build project to use a newer version of Cake, and then reference it within the build.
As a general rule, the Cake Team have always recommended pinning the version of Cake, Cake Addins, Cake Tools and Cake Modules, so that issues like this don't crop up when newer versions of those things are released.
What You Are Seeing?
A crash.
I try to build the repository ZXing.Net.Mobile, which has a stock build.sh file for bootstrapping CAKE. The log:
What is Expected?
To not crash?
What version of Cake are you using?
The last one? build.sh seems to download the last one. Which at the time of writing seems to be 0.30.0.
Are you running on a 32 or 64 bit system?
64 I guess.
What environment are you running on? Windows? Linux? Mac?
macOS
Are you running on a CI Server? If so, which one?
No
How Did You Get This To Happen? (Steps to Reproduce)
Clone https://github.com/Redth/ZXing.Net.Mobile , run its build.sh.
Output Log
Log with
--verbosity=diagnostic
: