This commit is contained in:
asoseil 2017-10-31 13:28:21 +01:00
parent 635f7dec73
commit 7c1066d503
3 changed files with 4 additions and 5 deletions

View File

@ -4,6 +4,7 @@ import (
"bufio" "bufio"
"bytes" "bytes"
"fmt" "fmt"
"github.com/pkg/errors"
"log" "log"
"os" "os"
"os/exec" "os/exec"
@ -12,7 +13,6 @@ import (
"strings" "strings"
"sync" "sync"
"time" "time"
"github.com/pkg/errors"
) )
// GoCompile is used for compile a project // GoCompile is used for compile a project
@ -71,7 +71,6 @@ func (p *Project) goRun(stop <-chan bool, runner chan bool) {
args = append(args, a...) args = append(args, a...)
} }
gobin := os.Getenv("GOBIN") gobin := os.Getenv("GOBIN")
path := filepath.Join(gobin, p.name) path := filepath.Join(gobin, p.name)
if _, err := os.Stat(path); err == nil { if _, err := os.Stat(path); err == nil {

View File

@ -3,9 +3,9 @@ package main
import ( import (
"errors" "errors"
"gopkg.in/urfave/cli.v2" "gopkg.in/urfave/cli.v2"
"log"
"os" "os"
"strings" "strings"
"log"
) )
// Array check if a string is in given array // Array check if a string is in given array