Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Restore prior --config-files behavior #1391
PR #1379/#860 introduced a new behavior for --config-files that fetches
This patch makes a hybrid solution which does, for any given
PR #1379/#860 introduced a new behavior for --config-files that fetches config files from the local filesystem. The prior behavior was to require these files to be provided by the source package (`--source` flag). This patch makes a hybrid solution which does, for any given `--config-files foo` flag: * does the path `foo` already exist in the staging area? Do nothing. This means the package source (`-s gem` for example) provided this file. * or, does the path `foo` exist in the local filesystem? If so, copy it into the staging area. * otherwise, consider this to be an error that the --config-files setting cannot find the file, and fpm will fail with an error.
I tested this a few ways:
And for a