()
| 119 | } |
| 120 | |
| 121 | func GetBinPath() string { |
| 122 | _, goFileName, _, _ := runtime.Caller(1) |
| 123 | // Yes, this assumes we're using the official build script. I haven't |
| 124 | // figured out a better approach yet given the panoply of options. |
| 125 | // Maybe some sort of Go search path? |
| 126 | return path.Join(path.Dir(goFileName), "../../../../build") |
| 127 | } |
| 128 | |
| 129 | type InvalidArg struct { |
| 130 | Cmd []string |