Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Commit

Permalink
On windows error Error: fork/exec go\bin\buffalo-goth.exe: The parame…
Browse files Browse the repository at this point in the history
…ter is incorrect. fixes gobuffalo/buffalo-goth#5
  • Loading branch information
= committed Dec 22, 2017
1 parent 8e9b27b commit 4f6dcff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion buffalo/cmd/plugins.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"fmt"
"os"
"os/exec"
"runtime"
"sync"

"github.com/gobuffalo/buffalo/plugins"
Expand Down Expand Up @@ -51,7 +52,9 @@ func decorate(name string, cmd *cobra.Command) {

ax = append(ax, args...)
ex := exec.Command(c.Binary, ax...)
ex.Env = append(envy.Environ(), "BUFFALO_PLUGIN=1")
if runtime.GOOS != "windows" {
ex.Env = append(envy.Environ(), "BUFFALO_PLUGIN=1")
}
ex.Stdin = os.Stdin
ex.Stdout = os.Stdout
ex.Stderr = os.Stderr
Expand Down

0 comments on commit 4f6dcff

Please sign in to comment.