[various] Clean up obsolete references to "master" (#5912)

This commit is contained in:
stuartmorgan
2022-06-06 15:23:10 -04:00
committed by GitHub
parent 7877a8beb0
commit 66824fd7e6
3 changed files with 36 additions and 3 deletions

View File

@ -191,6 +191,11 @@ class PubspecCheckCommand extends PackageLoopingCommand {
errorMessages
.add('The "repository" link should end with the package path.');
}
if (pubspec.repository!.path.contains('/master/')) {
errorMessages
.add('The "repository" link should use "main", not "master".');
}
}
if (pubspec.homepage != null) {