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
Fix issue with replacing Cake.Recipe for integration tests #306
Comments
@gep13, no there’s no way to do that, as this is a functionality of NuGet itself. What you want to do is to install Cake.Recipe from local source in integration tests. Take a look at Bakery integration tests, we do that there as well. |
For reference... https://github.com/cake-build/bakery/blob/develop/setup.cake#L214 |
This has been fixed, as discussed on live stream on the topic. The integration tests now update the setup/recipe .cake file for the test repository, to restore Cake.Recipe from a file:// location, rather than from NuGet. That means, the version of Cake.Recipe that was just built is what is used for testing. |
Rather than attempting to unzip the newly built Cake.Recipe NuPkg directly to the tools folder in the cloned repositories, resolve the NuPkg by altering the load preprocessor directive in each cloned repository. This can be done using a simple Regular Express search and replace.
* release/1.0.0: (360 commits) (maint) Change order of information logs (maint) Use correct version number format (build) Fix syntax error (GH-306) Error if not using supported Cake Version (GH-306) Fix integration tests (GH-358) Update nuspec metadata (maint) Update to latest PS Bootstrapper (GH-353) Change wording of notification messages (maint) Updated to latest Cake.Slack (GH-354) Changed to parse path te libgit2 before patching (GH-354) Updated to patch LibGit2Sharp.dll.config (GH-337) Update NUnit.ConsoleRunner reference from 3.4.1 to 3.10.0 (GH-335) Update KuduSync.NET reference from 1.3.1 to 1.5.2 (GH-332) Update Cake.Wyam reference from 1.7.4 to 2.2.4 (GH-344) Update Wyam reference from 1.7.4 to 2.2.4 (GH-342) Update OpenCover reference from 4.6.519 to 4.7.922 (GH-328) Update Cake.Codecov reference from 0.4.0 to 0.5.0 (GH-326) Update Fixie reference from 1.0.2 to 2.0.4 (GH-327) Update JetBrains.ReSharper.CommandLineTools reference from 2018.2.3 to 2018.3.4 (GH-329) Update Cake.Issues.Reporting.Generic reference from 0.6.1 to 0.6.2 ...
Merge branch 'release/1.0.0' * release/1.0.0: (360 commits) (maint) Change order of information logs (maint) Use correct version number format (build) Fix syntax error (GH-306) Error if not using supported Cake Version (GH-306) Fix integration tests (GH-358) Update nuspec metadata (maint) Update to latest PS Bootstrapper (GH-353) Change wording of notification messages (maint) Updated to latest Cake.Slack (GH-354) Changed to parse path te libgit2 before patching (GH-354) Updated to patch LibGit2Sharp.dll.config (GH-337) Update NUnit.ConsoleRunner reference from 3.4.1 to 3.10.0 (GH-335) Update KuduSync.NET reference from 1.3.1 to 1.5.2 (GH-332) Update Cake.Wyam reference from 1.7.4 to 2.2.4 (GH-344) Update Wyam reference from 1.7.4 to 2.2.4 (GH-342) Update OpenCover reference from 4.6.519 to 4.7.922 (GH-328) Update Cake.Codecov reference from 0.4.0 to 0.5.0 (GH-326) Update Fixie reference from 1.0.2 to 2.0.4 (GH-327) Update JetBrains.ReSharper.CommandLineTools reference from 2018.2.3 to 2018.3.4 (GH-329) Update Cake.Issues.Reporting.Generic reference from 0.6.1 to 0.6.2 ...
Merge branch 'release/1.0.0' * release/1.0.0: (360 commits) (maint) Change order of information logs (maint) Use correct version number format (build) Fix syntax error (GH-306) Error if not using supported Cake Version (GH-306) Fix integration tests (GH-358) Update nuspec metadata (maint) Update to latest PS Bootstrapper (GH-353) Change wording of notification messages (maint) Updated to latest Cake.Slack (GH-354) Changed to parse path te libgit2 before patching (GH-354) Updated to patch LibGit2Sharp.dll.config (GH-337) Update NUnit.ConsoleRunner reference from 3.4.1 to 3.10.0 (GH-335) Update KuduSync.NET reference from 1.3.1 to 1.5.2 (GH-332) Update Cake.Wyam reference from 1.7.4 to 2.2.4 (GH-344) Update Wyam reference from 1.7.4 to 2.2.4 (GH-342) Update OpenCover reference from 4.6.519 to 4.7.922 (GH-328) Update Cake.Codecov reference from 0.4.0 to 0.5.0 (GH-326) Update Fixie reference from 1.0.2 to 2.0.4 (GH-327) Update JetBrains.ReSharper.CommandLineTools reference from 2018.2.3 to 2018.3.4 (GH-329) Update Cake.Issues.Reporting.Generic reference from 0.6.1 to 0.6.2 ...
Integration Tests extract latest content into the
Cake.Recipe
folder, but in-proc NuGet Client restores into a versioned number folder:Not immediately clear on what can be done to resolve this.
@mholo65 did you have any ideas here? Is there a way to tell the in-proc NuGet client to NOT do anything?
The text was updated successfully, but these errors were encountered: