Skip to content

Handle asset file reading errors more robustly - #2083

Merged
nguerrera merged 2 commits into
dotnet:release/2.1.3xxfrom
nguerrera:assets-file-error-handling
Mar 27, 2018
Merged

nguerrera merged 2 commits into
dotnet:release/2.1.3xxfrom
nguerrera:assets-file-error-handling

Conversation

@nguerrera

@nguerrera nguerrera commented Mar 23, 2018 •

Copy link
Copy Markdown
Contributor

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

@nguerrera
nguerrera requested review from a team, dsplaisted and livarcocc March 23, 2018 18:43
@nguerrera
nguerrera changed the base branch from master to release/2.1.3xx March 23, 2018 18:43
@nguerrera
nguerrera force-pushed the assets-file-error-handling branch from e40d6d2 to 1e197e2 Compare March 23, 2018 18:46
private LockFile LoadLockFile(string path)
{
if (!File.Exists(path))
// LockFileUtilties.GetLockFile has odd error handling:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Add a link to the NuGet bug you filed. Consider updating or filing new bugs for the other issues.

@livarcocc livarcocc added this to the 2.1.3xx milestone Mar 23, 2018
@livarcocc

Copy link
Copy Markdown
Contributor

@MattGertz TELL.

@nguerrera
nguerrera force-pushed the assets-file-error-handling branch from 1e197e2 to 2054f51 Compare March 26, 2018 23:32
@nguerrera
nguerrera force-pushed the assets-file-error-handling branch from 2054f51 to 6a260a0 Compare March 27, 2018 17:48
@nguerrera

Copy link
Copy Markdown
Contributor Author

compose_mutlifile keeps failing on Ubuntu. Filed #2089 and disabled it on non-Windows in 4acd366

@nguerrera nguerrera closed this Mar 27, 2018
@nguerrera nguerrera reopened this Mar 27, 2018
@nguerrera
nguerrera merged commit d8755d7 into dotnet:release/2.1.3xx Mar 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants