devtools: Use lookpath package consistently.

Changes the signature of the lookpath functions to:
Look(env map[string]string, ...) (string, error)
LookPrefix(env map[string]string, ...) ([]string, error)

The env map is passed in, rather than a slice of dirs, to
facilitate supporting other platforms in the future.  E.g. on
windows we need to consult both the PATH and PATHDIRS environment
variables.

We now return an error, to more closely match LookPath in
os/exec.  The implementation of these methods has also changed,
to more closely match the os/exec implementation.

Also removed the copy of LookPath in runutil, and changed code to
use the lookpath package instead.

Fixes v.io/i/1157

Change-Id: I21e2bbe7942abd52c27ed119adb6fc526d1f13fe
MultiPart: 2/3
3 files changed
tree: 0a0b70b0efbe2fb63043ad4064512dd5e75405f0
  1. bendroid/
  2. dashboard/
  3. data/
  4. godepcop/
  5. gologcop/
  6. internal/
  7. jiri-api/
  8. jiri-copyright/
  9. jiri-dockergo/
  10. jiri-go/
  11. jiri-goext/
  12. jiri-oncall/
  13. jiri-profile-v23/
  14. jiri-run/
  15. jiri-swift/
  16. jiri-test/
  17. jiri-v23-profile/
  18. jiridoc/
  19. madb/
  20. mailer/
  21. oncall/
  22. postsubmit/
  23. presubmit/
  24. vbinary/
  25. vcloud/
  26. vjenkins/
  27. vkiosk/
  28. vmon/
  29. .gitignore
  30. .godepcop
  31. .jiriignore
  32. AUTHORS
  33. CONTRIBUTING.md
  34. CONTRIBUTORS
  35. LICENSE
  36. PATENTS
  37. README.md
  38. VERSION
README.md

This repository contains developer tools used to install and contribute to Vanadium.

For more information, see the installation and contributing instructions.

This repository is fetched and the tools are built as part of the Vanadium installation process for contributors.