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
@vincanger uses dope.sh a lot on Mac and had some trouble but fixed it, he will know more probably! Or you should at least compare your setups, to see what is the difference.
For it broke down as well. I diagnosed it to be because the script didn't pick up my alias defined in .zshrc. I verified that by running patch --version from the script. It said that I'm using the built in patch and not GNU patch.
Doing something like this helped:
PATCH_CMD="patch"if [[ "$(uname)"=="Darwin" ]];then# We're on macOS, check if gpatch existsifcommand -v gpatch &> /dev/null;then
PATCH_CMD="gpatch"fifi
Explore a bit and confirmed "Aliases and functions do not propagate to shell scripts. This is by design".
We will need to handle OS differences in the script itself.
I've followed readme's MacOS instructions for
opensaas-sh
but running thepatch.sh
fails when it calls thedope.sh
script.Error message:
On my latests favicon changes PR I'm doing I tried to just remove the flag, it didn't break anything:
patch_output=$(patch --no-backup-if-mismatch --merge "${DERIVED_DIR}/${derived_filepath}" < "${diff_filepath}")
->
patch_output=$(patch --no-backup-if-mismatch "${DERIVED_DIR}/${derived_filepath}" < "${diff_filepath}")
Though, that might not be case for all situations.
We need to explore an alternative.
The text was updated successfully, but these errors were encountered: