Skip to content

Commit

Permalink
Adding go get gauge-go as post install command
Browse files Browse the repository at this point in the history
  • Loading branch information
apoorvam committed Oct 5, 2016
1 parent 9572208 commit 1fec9c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
5 changes: 0 additions & 5 deletions gauge/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ func LoadGaugeImpls() error {
var b bytes.Buffer
buff := bufio.NewWriter(&b)

if err := util.RunCommand(os.Stdout, os.Stdout, constants.CommandGo, "get", "./..."); err != nil {
buff.Flush()
return fmt.Errorf("Failed to get dependencies: %s\n", err.Error())
}

if err := util.RunCommand(os.Stdout, os.Stdout, constants.CommandGo, "build", "./..."); err != nil {
buff.Flush()
return fmt.Errorf("Build failed: %s\n", err.Error())
Expand Down
7 changes: 6 additions & 1 deletion go.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id" : "go",
"version" : "0.0.1",
"version" : "0.0.2",
"description": "Go support for gauge",
"run": {
"windows": ["bin/gauge-go", "--start"],
Expand All @@ -16,5 +16,10 @@
"gaugeVersionSupport": {
"minimum": "0.3.0",
"maximum": ""
},
"postInstall": {
"windows": ["go", "get", "github.com/getgauge-contrib/gauge-go"],
"linux": ["go", "get", "github.com/getgauge-contrib/gauge-go"],
"darwin": ["go", "get", "github.com/getgauge-contrib/gauge-go"]
}
}

0 comments on commit 1fec9c6

Please sign in to comment.