mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 12:54:38 +03:00
Dependency updates
This commit is contained in:
10
vendor/github.com/gobuffalo/envy/envy.go
generated
vendored
10
vendor/github.com/gobuffalo/envy/envy.go
generated
vendored
@@ -195,6 +195,16 @@ func GoBin() string {
|
||||
return Get("GO_BIN", "go")
|
||||
}
|
||||
|
||||
func InGoPath() bool {
|
||||
pwd, _ := os.Getwd()
|
||||
for _, p := range GoPaths() {
|
||||
if strings.HasPrefix(pwd, p) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// GoPaths returns all possible GOPATHS that are set.
|
||||
func GoPaths() []string {
|
||||
gp := Get("GOPATH", "")
|
||||
|
||||
Reference in New Issue
Block a user