You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix the `generate` target so developers using Windows can do `make
generate` for their components on Windows. Main things in this change:
1. Use of path that can be pre-pended to `PATH`, the one being used
contains `:` and even escaping it is not enough to get it to correctly
work when it is being included in `PATH`
2. Ensure that on Windows all tools used by `go generate` have the `exe`
extension. This is needed because the `cmd` package used by `go
generate` checks for the known executable extensions on Windows. Notice
that `make` and Git Bash don't require that and same extension is not
needed for the other tools.
3. The `generate` target now triggers building the tools it needs as
various other targets so it can avoid the full `install-tools`.
Future work:
- `go.*` targets are really slow on Windows since they trigger the
re-evaluation of all shell commands that are really expensive on
Windows. Basically any recursive make call from `for-all` is currently
too expensive on Windows.
- Move the definition of components custom tools to the respective
components, possibly using the new go.mod `tool` directive. For now I
opted to keep the tool used by `githubreceiver` as it is.
0 commit comments