how does platform: system
work for shell/bash?
#413
-
I have a few one-off root-level tasks that I do not necessarily want a long list of args nor write an external script. Command from string works: relink:
command: |
bash -c "
find . -name "node_modules" -type d -prune -print -exec rm -rf "{}" \;
pnpm install --recursive
"
platform:
system But, Id rather: relink:
command: |
find . -name "node_modules" -type d -prune -print -exec rm -rf "{}" \;
pnpm install --recursive
platform:
system Why do I need to invoke bash with the command from string, even when I say the platform is system? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@tomdavidson System simply means to use a command found on the current machine, instead of relying on moon's built in toolchain. It's basically an escape hatch. We also don't use shells at this time as it makes these commands non-deterministic across machines. Are you basically just trying to nuke all node modules and re-install? This approach also seems iffy since that |
Beta Was this translation helpful? Give feedback.
@tomdavidson System simply means to use a command found on the current machine, instead of relying on moon's built in toolchain. It's basically an escape hatch. We also don't use shells at this time as it makes these commands non-deterministic across machines.
Are you basically just trying to nuke all node modules and re-install? This approach also seems iffy since that
pnpm
wouldn't be the same one configured in the workspace.