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
Stop synthesizing owners #3241
Stop synthesizing owners #3241
Conversation
Also: if you'd like me to take a different approach or fit other constraints, I'd be glad to try. |
Thgere are bunch of failing tests 68 in total, I'll paste the class names as our CI is private. PackCommand_NewProject_AddsTitleToNuspec Can you please take a look? |
@nkolev92 Right now it appears that nuspecs without an Is it acceptable to make it so that nuspecs without an |
0b711e8
to
ba82270
Compare
I believe I've fixed all the tests you mentioned and found some more related ones to fix. Could you rerun CI and let me know? |
The windows functional test and mac functional test failures were the same, just on different platforms: NuGet.CommandLine.Test.NuGetSpecCommandTests.SpecCommand_NoProjectFile |
Thanks, pushed fixes for those three. |
I think it's ok. There's unfortunately no neat way to handle all this in our libraries, so this is the best we have. |
@NuGet/nuget-client I'd appreciate another pair of eyes on this. |
src/NuGet.Core/NuGet.Packaging/PackageCreation/Xml/PackageMetadataXmlExtensions.cs
Show resolved
Hide resolved
@@ -97,7 +97,7 @@ public IEnumerable<string> Authors | |||
|
|||
public IEnumerable<string> Owners | |||
{ | |||
get { return (_owners == null || !_owners.Any()) ? _authors : _owners; } | |||
get { return _owners; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Theoretically this is breaking change. Anyone with custom applications using the NuGet.Packaging
package will have a change in behaviour. However, I think the risk of this breaking someone is very low, so I think it's ok. But we should be aware.
Thanks for the contribution @jnm2 Sorry for the delay, we just wanted to make sure all stakeholders were aware of this change (as I imagine you are likely aware :) ) |
Thanks for the help! |
Bug
Fixes: NuGet/Home#5134
Regression: No
Fix
Details:
<owners>
is no longer forced to appear when not specified.Testing/Validation
Tests Added: Yes
Validation: Integration tests failed before fix, passed after fix