Description
Title basically says it all. Once it's possible to prepend paths to the PATH via env (ideally fixed in #2034) , it should have a native cross-platform syntax for doing it cleanly on windows or posix platforms.
env:
PATH: "{{joinEnv "{{.TASKFILE_DIR}}/tools/bin" .PATH}}"
or perhaps
env:
BIN_DIR: "{{joinPath {{.TASKFILE_DIR}} "tools" "bin"}}"
PATH: "{{joinEnv .BIN_DIR .PATH}}"
Additionally, or alternatively, add a special variable: PATHSEP for platform specific path separation in env vars.
env:
PATH: "{{{{.TASKFILE_DIR}}/tools/bin{{.PATHSEP}}{{.PATH}}"
Description
Title basically says it all. Once it's possible to prepend paths to the PATH via
env(ideally fixed in #2034) , it should have a native cross-platform syntax for doing it cleanly on windows or posix platforms.or perhaps
Additionally, or alternatively, add a special variable:
PATHSEPfor platform specific path separation in env vars.