Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion internal/core/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package core

import (
_ "embed"
"os"
"os/exec"
"slices"
"strings"
Expand Down Expand Up @@ -318,7 +319,9 @@ func (c *Configuration) Validate() {
// Validate global options.
if ghwCfg.Global.DefaultBranch == "" {
errMsg := "could not find default branch using git, you can define it manually by setting 'githubWorkflow.global.defaultBranch' in config"
b, err := exec.Command("git", "symbolic-ref", "refs/remotes/origin/HEAD").CombinedOutput()
cmd := exec.Command("git", "symbolic-ref", "refs/remotes/origin/HEAD")
cmd.Stderr = os.Stderr
b, err := cmd.Output()
if err != nil {
logg.Fatal("%s: %s", errMsg, err.Error())
}
Expand Down
3 changes: 2 additions & 1 deletion internal/renovate/renovate.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@ func RenderConfig(cfg core.Configuration, scanResult golang.ScanResult) {
} else {
logg.Debug("-> running renovate-config-validator")
cmd := exec.Command(validator)
output, err := cmd.CombinedOutput()
cmd.Stderr = os.Stderr
output, err := cmd.Output()
if err != nil {
logg.Fatal(string(output))
}
Expand Down
3 changes: 2 additions & 1 deletion internal/reuse/reuse.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ func RenderConfig(cfg core.Configuration, sr golang.ScanResult) {
// otherwise we might miss some direct dependencies which is really strange...
logg.Debug("-> running go-mod-tidy")
cmd := exec.Command("go", "mod", "tidy")
output, err := cmd.CombinedOutput()
cmd.Stderr = os.Stderr
output, err := cmd.Output()
if err != nil {
logg.Fatal(string(output))
}
Expand Down
Loading