()
| 39 | } |
| 40 | |
| 41 | func RealWorkDir() (string, error) { |
| 42 | if runtime.GOOS == "darwin" { |
| 43 | if pwd, present := os.LookupEnv("PWD"); present { |
| 44 | os.Unsetenv("PWD") |
| 45 | defer os.Setenv("PWD", pwd) |
| 46 | } |
| 47 | return os.Getwd() |
| 48 | } |
| 49 | return "", nil |
| 50 | } |
| 51 | |
| 52 | type Context interface { |
| 53 | // Context is the golang context to use |