Skip to content

Commit 54ee022

Browse files
committed
reelase: add new formulas to homebrew
Previously, the update_brew command did not add the new formulas to the git index. This lead to missing files in the homebrew repository after adding a new major version. This commit adds a `git add Formula` command to ensure that the new formulas are added to PRs. Release note: none Epic: none
1 parent 4aa37fa commit 54ee022

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/cmd/release/update_brew.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ func updateBrew(workDir string, version *semver.Version, latestMajor bool) error
2424
commands = append(commands, exec.Command("make", fmt.Sprintf("VERSION=%s", version.String()), "PRODUCT=cockroach"))
2525
commands = append(commands, exec.Command("make", fmt.Sprintf("VERSION=%s", version.String()), "PRODUCT=cockroach-sql"))
2626
}
27+
commands = append(commands, exec.Command("git", "add", "Formula"))
2728
for _, cmd := range commands {
2829
cmd.Dir = workDir
2930
out, err := cmd.CombinedOutput()

0 commit comments

Comments
 (0)