Skip to content

Commit df7b7a7

Browse files
craig[bot]rail
andcommitted
Merge #147340
147340: reelase: add new formulas to homebrew r=jlinder a=rail 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 Co-authored-by: Rail Aliiev <[email protected]>
2 parents d6f88c5 + 54ee022 commit df7b7a7

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)