Update godep in vendor
This commit is contained in:
24
vendor/github.com/tools/godep/util.go
generated
vendored
24
vendor/github.com/tools/godep/util.go
generated
vendored
@@ -1,35 +1,11 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os/exec"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// Runs a command in dir.
|
||||
// The name and args are as in exec.Command.
|
||||
// Stdout, stderr, and the environment are inherited
|
||||
// from the current process.
|
||||
func runIn(dir, name string, args ...string) error {
|
||||
_, err := runInWithOutput(dir, name, args...)
|
||||
return err
|
||||
}
|
||||
|
||||
func runInWithOutput(dir, name string, args ...string) (string, error) {
|
||||
c := exec.Command(name, args...)
|
||||
c.Dir = dir
|
||||
o, err := c.CombinedOutput()
|
||||
|
||||
if debug {
|
||||
fmt.Printf("execute: %+v\n", c)
|
||||
fmt.Printf(" output: %s\n", string(o))
|
||||
}
|
||||
|
||||
return string(o), err
|
||||
}
|
||||
|
||||
// driveLetterToUpper converts Windows path's drive letters to uppercase. This
|
||||
// is needed when comparing 2 paths with different drive letter case.
|
||||
func driveLetterToUpper(path string) string {
|
||||
|
Reference in New Issue
Block a user