Skip to content

./tools/dope./sh fails for MacOS #416

Closed
@FranjoMindek

Description

@FranjoMindek

I've followed readme's MacOS instructions for opensaas-sh but running the patch.sh fails when it calls the dope.sh script.

Error message:

patch: unrecognized option `--merge'
usage: patch [-bCcEeflNnRstuv] [-B backup-prefix] [-D symbol] [-d directory]
             [-g vcs-option] [-F max-fuzz] [-i patchfile] [-o out-file]
             [-p strip-count] [-r rej-name] [-T | -Z]
             [-V t | nil | never | none] [-x number] [-Y prefix]
             [-z backup-ext] [--quoting-style style] [--posix]
             [origfile [patchfile]]
       patch <patchfile

[Failed with exit code 1]

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.

Metadata

Metadata

Labels

bugSomething isn't workingquestionFurther information is requestedshouldfix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions