I'm working on using Swift in some pre-commit scripts. For some reason when I attempted to run various versions of "swift package update" as a script for git pre-commit I would get a failure.
// swift script in ./.git/hooks/pre-commit
shellOut(to: "swift package update")
I'm working on using Swift in some pre-commit scripts. For some reason when I attempted to run various versions of "swift package update" as a script for git pre-commit I would get a failure.
produces the following error:
Appears to correct itself if I add Environment variables to the script that changes the PATH variable.
thoughts on a pull request? or am I overthinking the situation and should use shellOut as is with additional arguments?