question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make cake bootstrapper use stable binary versions by default?

See original GitHub issue

Today in my build I’ve started getting this error:

Error: The assembly 'Cake.Compression, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' is referencing an older version of Cake.Core (0.14.0). This assembly need to reference at least Cake.Core version 0.16.0. Another option is to downgrade Cake to an earlier version.

This was also the day Cake 0.18 was released so I am guessing this is the cause.

Which raises an interesting question: should the default bootstrappers for cake use “dynamic” versions of binaries? Currently the build.ps1 that I have (which I must have copied from the cake repo) goes and gets cake.exe from here http://cakebuild.net/download/bootstrapper/packages which appears to be a nuget feed with just the latest package version in it.

Seems to me that once happy cake users get their build scripts working, I expect the majority of them wouldn’t want any breaking changes to come their way unless they opted in? Obviously some might, but seems a safe default would be more sensible to me.

Opinions?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
devleadcommented, Mar 8, 2017

Well the idea is that you commit packages.config to your repo and by doing so you pin the version of Cake being used.

1reaction
devleadcommented, Mar 8, 2017

Yes, you could specify the version parameter to nuget install command.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cake + .NET Core = Write Once, Build Anywhere - YouTube
In this session, we'll explore what Cake can do for us by ... We'll use it to compile, test, package and deploy our...
Read more >
Extending the bootstrapper to parse cake.config
I created an extended bootstrapper that adds parsing of the cake.config file and allowed me to tell Cake to use a different directory, ......
Read more >
cake/ReleaseNotes.md at develop · cake-build/cake
cake : Cake (C# Make) is a cross platform build automation system. ... prerelease versions; 3709 Arguments alias should support ICollection as default...
Read more >
How can I use the latest pre-release version of Cake
By default, when restoring packages through the Cake Bootstrapper, a default source of nuget.org is used to locate packages.
Read more >
Migrations - 3.x
The easiest way to create a migrations file is by using bin/cake bake migration CLI command. Please make sure you read the official...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found