Replies: 1 comment 6 replies
-
Hey @kjbartel, the way to avoid this issue for good is to follow our recommendation of pinning the cake version that you use, which in your case it means storing the We have great documentation on how to do this for each different Cake runner, and even a video if you check the Reproducible Builds section on the website. Before we do every release (even minor ones) we send a friendly reminder about this on all channels we engage with the community, including Twitter, Gitter, Slack, and more. It's unfortunate that you didn't have your version locked this time, but now you know the path forward and can avoid the same issue when future versions of Cake are released. NB: The same concept applies to all addins, modules, and recipes you use on your build scripts. We recommend you always specify the version of the extension you're loading, to avoid surprises, by appending the |
Beta Was this translation helpful? Give feedback.
-
What You Are Seeing?
Breaking changes introduced in cake 1.0.0 affect all old build.ps1 scripts because the packages.config fetched targets 1.0.0. All of the older build.ps1 scripts do not work with new cake 1.0.0. This has broken a lot of automated builds and we now need to go to old branches to get them building again.
What is Expected?
build.ps1 script should continue to work without any modification. If you introduce a breaking change then the path to packages.config which is fetched for 1.0.0 should be a different path. Old scripts should then get the old (still compatible) version (0.38.5) of the nuget package.
What version of Cake are you using?
Well everyone who doesn't have a packages.config file will automatically use 1.0.0.
Are you running on a 32 or 64 bit system?
64-bit
What environment are you running on? Windows? Linux? Mac?
Windows
Are you running on a CI Server? If so, which one?
TeamCity
How Did You Get This To Happen? (Steps to Reproduce)
Use any old script which uses single dashes for the arguments and don't have a packages.config file under tools, and then run the script.
Beta Was this translation helpful? Give feedback.
All reactions