fix(dev): fix Rust toolchain check in Makefile (#18218)
The `make` command inside of the Vector environment image optimizes `$(shell ...)` such that if the
command to run is simple enough, it will just call it directly without using a shell. The problem is
that the `command` command used to check if the Rust toolchain is installed is a shell builtin and,
when optimized, `make` invocations that use the `check-build-tools` target emit the following error:
make: command: Command not found
This commit fixes the issue by using a redirect, and thus forcing `make` to use the shell.
Ref: https://stackoverflow.com/a/12991757
Signed-off-by: Hugo Hromic <hhromic@gmail.com> H
Hugo Hromic committed
f77fd3d2735dbfeda3d9bdaf8f11605e4acd8a33
Parent: f39a0e9
Committed by GitHub <noreply@github.com>
on 8/11/2023, 1:56:35 PM