From 4b19686109b0962ea68dfe58feafffe3bac9c202 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 1 Oct 2026 22:24:09 +0900 Subject: cmd/dist: optionally build with race instrument This is mostly useful for the integration test suites. Signed-off-by: Ophestra --- cmd/mbf/main.go | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'cmd/mbf/main.go') diff --git a/cmd/mbf/main.go b/cmd/mbf/main.go index 5dd4e8a0..dd5ee624 100644 --- a/cmd/mbf/main.go +++ b/cmd/mbf/main.go @@ -548,6 +548,29 @@ func main() { "Write the resulting distribution to the named directory", ) } + { + var flagOutput string + _ci.NewCommand( + "race", + "Request distribution tarball (race) for the specified source directory", + func(args []string) error { + if len(args) != 2 { + return errors.New("race requires 2 arguments") + } + + return ci.Path(cm.base).MakeDistRace( + ctx, + os.Stdout, + flagOutput, + args[0], args[1], + ) + }, + ).Flag( + &flagOutput, + "o", command.StringFlag("."), + "Write the resulting distribution to the named directory", + ) + } c.NewCommand( "keygen", -- cgit v1.3.1