Update godep in vendor

This commit is contained in:
Christoph Blecker
2018-04-02 12:57:41 -07:00
parent ba71e6307a
commit 0828b19996
21 changed files with 70 additions and 133 deletions

View File

@@ -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 {