Skip to content
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

LibraryRange.ToLockFileDependencyGroupString handles scenarios without a specified version gracefully #5900

Merged
merged 2 commits into from
Jul 3, 2024

Conversation

nkolev92
Copy link
Member

@nkolev92 nkolev92 commented Jul 2, 2024

Bug

Fixes: NuGet/Home#13563

Regression? Last working version:

Description

2be8680 accidentally regressed the writing for ToLockFileDependencyGroupString, where a package is missing a version.
It used to just write the name, but it was accidentally changed to write null, which led to NuGet/Home#13563, and a null reference on the .NET SDK side.

There's probably still some improvements to do on the SDK side, but the NuGet side itself is a regression.

PR Checklist

  • PR has a meaningful title

  • PR has a linked issue.

  • Described changes

  • Tests

    • Automated tests added
    • OR
    • Test exception
    • OR
    • N/A
  • Documentation

    • Documentation PR or issue filled
    • OR
    • N/A

@nkolev92 nkolev92 requested a review from a team as a code owner July 2, 2024 22:30
@nkolev92 nkolev92 marked this pull request as draft July 2, 2024 22:30
@nkolev92 nkolev92 changed the title Dev nkolev92 improved handling of no version improved handling of no version Jul 2, 2024
@nkolev92 nkolev92 changed the title improved handling of no version LibraryRange.ToLockFileDependencyGroupString handles scenarios without a specified version gracefully Jul 2, 2024
@nkolev92 nkolev92 marked this pull request as ready for review July 2, 2024 22:33
@nkolev92 nkolev92 merged commit ae8c3e4 into dev Jul 3, 2024
28 checks passed
@nkolev92 nkolev92 deleted the dev-nkolev92-improvedHandlingOfNoVersion branch July 3, 2024 17:37
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.

Restore may write nulls to project.assets.json
4 participants