observatorium / opentelemetry-collector-builder

A CLI tool that generates OpenTelemetry Collector binaries based on a manifest.
Apache License 2.0
21 stars 2 forks source link

Detect go binary from PATH before failing #3

Closed fangyi-zhou closed 3 years ago

fangyi-zhou commented 3 years ago

It's not always the case that the path of go binary are the same across machines (e.g. /usr/local/bin/go, /usr/bin/go, etc). I wonder if it is a good idea to automatically detect go, when the provided go binary path is not available, so that when running across machines there are no need to edit config files or having to pass --go $(which go) as a command line flag

jpkrohling commented 3 years ago

Thanks!