Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

"dnu restore" checks corrupted packages #2232

Merged
merged 3 commits into from
Jul 10, 2015

Conversation

ChengTian
Copy link
Contributor

parent #1243

Without this change, when {id}.nuspec is missing, dnu restore fails instead of reinstalling.

@davidfowl
@BrennanConroy (I modified some of your tests)

@@ -6,6 +6,7 @@
using Microsoft.Framework.CommonTestUtils;
using Microsoft.Framework.PackageManager.FunctionalTests;
using Xunit;
using NuGet;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Order

@ChengTian
Copy link
Contributor Author

Thanks for the feedback. Fixed in the latest commit.

@@ -108,6 +108,14 @@ public IEnumerable<PackageInfo> FindPackagesById(string packageId)
continue;
}

var manifestFilePath = _repositoryRoot.GetFiles(versionDir, "*" + Constants.ManifestExtension)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need this check at runtime?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After introducing lock file, this logic is never executed during runtime of your apps. It only happens during dnu restore.

@davidfowl
Copy link
Member

:shipit:

@ChengTian ChengTian force-pushed the wei/dnu-restore-check-corrupted-packages branch from a651321 to 303264e Compare July 10, 2015 22:18
@ChengTian ChengTian merged commit 303264e into dev Jul 10, 2015
@ChengTian ChengTian deleted the wei/dnu-restore-check-corrupted-packages branch July 10, 2015 22:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants