Commit 1cb49d8
authored
Add Nuspec Schema scrubber and add to default scrubbers list (#11)
The NuGet client will always use the oldest schema version it can.
Additionally, a new schema version was released for SemVer version
numbers (i.e. v2 and v3 here:
https://github.com/NuGet/NuGet.Client/blob/8c972cdff5b1194d7c37384fca5816a33ffbe0c4/src/NuGet.Core/NuGet.Packaging/PackageCreation/Authoring/ManifestSchemaUtility.cs).
The result of these two factors is that a version bump (such as from
1.0.0-deadbeef to 1.0.1) may result in a nuspec diff.
Thus scrub the xmlns for the NuSpec schema to reduce the noise in the
diff.1 parent 49f8ffa commit 1cb49d8
File tree
14 files changed
+82
-11
lines changed- Tests/Verify.Nupkg.Tests
- NuspecScrubbingTests.AddGitExtensionToRepoUrl
- NuspecScrubbingTests.DoNotScrubGitExtensionOnRepoUrl
- NuspecScrubbingTests.DoNotScrubNonGitHubDomainRepoUrl
- NuspecScrubbingTests.DoNotScrubNonHttpsRepoUrl
- NuspecScrubbingTests.SkipScrubbingForRepoWithNoCommit
- NuspecScrubbingTests.SkipScrubbingForRepoWithNoUrl
- SimplePackageTests.BasicTest
- SimplePackageTests.CustomFileExclusionTest
- SimplePackageTests.OnlyOptInScrubbersRun
- VerifyNupkgPackageTests.Baseline
- Verify.Nupkg
14 files changed
+82
-11
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
0 commit comments