Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Commit

Permalink
fix: build plugin incorrectly combines stdout&err
Browse files Browse the repository at this point in the history
  • Loading branch information
garethjevans authored and randomvariable committed Nov 14, 2022
1 parent 65ded46 commit a8c2eac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/cli/plugin-admin/builder/command/cli_compile.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,13 +252,14 @@ func buildPlugin(path string, arch cli.Arch, id string) (plugin, error) {
}

cmd.Args = append(cmd.Args, "info")
b, err := cmd.CombinedOutput()
b, err := cmd.Output()

if err != nil {
log.Errorf("%s - error: %v", id, err)
log.Errorf("%s - output: %v", id, string(b))
return plugin{}, err
}

var desc cliapi.PluginDescriptor
err = json.Unmarshal(b, &desc)
if err != nil {
Expand Down

0 comments on commit a8c2eac

Please # to comment.