maintainer-update #120
Reference in New Issue
Block a user
Delete Branch "maintainer-update"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Update maintainership files inplace
Staggered with the pr-tests #106
This one should probably be reviewed as one chunk instead of per-commit. If there are issues, I'll add new commits that fix these issues in review on top and I will not be rewriting history.
Some problems listed inline, but can be fixed in follow ups.
@@ -130,2 +130,4 @@-C utils/hujson \-buildmode=piego build \-C utils/maintainer-update \Please also add this to %check
@@ -0,0 +23,4 @@common.PanicOnError(err)common.PanicOnError(m.WriteMaintainershipFile(f))common.PanicOnError(f.Close())common.PanicOnError(os.Rename(filename+".new", filename))fsync() missing before rename, without it risks loosing both files.
So, f.Sync() after f.Close() results in an error. I would assume that such files are flushed already to disk?
@@ -0,0 +93,4 @@expectedError: "Failed to parse JSON",},{name: "add and remove",Test is somehow not implementing description, there is nothing being removed.
@@ -0,0 +145,4 @@pkg = flag.String("package", "", "Package to modify")rm = flag.Bool("rm", false, "Remove maintainer from package")add = flag.Bool("add", false, "Add maintainer to package")lint = flag.Bool("lint-only", false, "Reformat entire _maintainership.json only")Move these into run() and remove the global calls, to not duplicate them from main.go and actually test them?