Repository navigation
Handle asset file reading errors more robustly - #2083
Merged
nguerrera merged 2 commits intoMar 27, 2018
Merged
Conversation
nguerrera
force-pushed
the
assets-file-error-handling
branch
from
March 23, 2018 18:46
e40d6d2 to
1e197e2
Compare
dsplaisted
approved these changes
Mar 23, 2018
| private LockFile LoadLockFile(string path) | ||
| { | ||
| if (!File.Exists(path)) | ||
| // LockFileUtilties.GetLockFile has odd error handling: |
Member
There was a problem hiding this comment.
Add a link to the NuGet bug you filed. Consider updating or filing new bugs for the other issues.
livarcocc
approved these changes
Mar 23, 2018
Contributor
|
@MattGertz TELL. |
nguerrera
force-pushed
the
assets-file-error-handling
branch
from
March 26, 2018 23:32
1e197e2 to
2054f51
Compare
nguerrera
force-pushed
the
assets-file-error-handling
branch
from
March 27, 2018 17:48
2054f51 to
6a260a0
Compare
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The recent episode where an assembly binding conflict resulted in nonsensical "Missing target in assets file" errors revealed several holes in how errors in the assets file are handled. This ensures that we never allow a bogus empty lock file to surface to our build logic and that all messages from NuGet or System.IO are preseved in the build output.
Fix #18