For 1 it might be enough to add `.` to the search ...
# general
s
For 1 it might be enough to add
.
to the search path for the common case, but likely needs to be overridable too in case people are putting their executables in
cmd/x/whatever