Skip to content

Commit

Permalink
Fix anonymous paths in cobra code-gen (#14185)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitess-bot[bot] committed Oct 10, 2023
1 parent 645f0ea commit 357077b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/cmd/internal/docgen/docgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ func anonymizeHomedir(file string) (err error) {

// We're replacing the stuff inside the square brackets in the example sed
// below:
// 's:Paths to search for config files in. (default \[.*\])$:Paths to search for config files in. (default \[$WORKDIR\]):'
sed := exec.Command("sed", "-i", "", "-e", fmt.Sprintf("s:%s:$WORKDIR:i", wd), file)
// 's:Paths to search for config files in. (default \[.*\])$:Paths to search for config files in. (default \[<WORKDIR>\]):'
sed := exec.Command("sed", "-i", "", "-e", fmt.Sprintf("s:%s:<WORKDIR>:i", wd), file)
if out, err := sed.CombinedOutput(); err != nil {
return fmt.Errorf("%w: %s", err, out)
}
Expand Down

0 comments on commit 357077b

Please sign in to comment.