-
Notifications
You must be signed in to change notification settings - Fork 511
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is overcomplicated for a very simple requirement. It can call `exec`, it has a cache protected by a mutex because it is so complex. Just use the per platform environment variables which will always be set, if the user has a weird environment they can specify full paths. Signed-off-by: Justin Cormack <[email protected]>
- Loading branch information
1 parent
c30d5e3
commit 36cce4f
Showing
8 changed files
with
24 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// +build !windows | ||
|
||
package main | ||
|
||
const homeEnv = "HOME" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package main | ||
|
||
const homeEnv = "USERPROFILE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 0 additions & 21 deletions
21
vendor/github.com/mitchellh/go-homedir/LICENSE
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
vendor/github.com/mitchellh/go-homedir/README.md
This file was deleted.
Oops, something went wrong.
112 changes: 0 additions & 112 deletions
112
vendor/github.com/mitchellh/go-homedir/homedir.go
This file was deleted.
Oops, something went wrong.