Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Look for config files next to input files #838

Merged
merged 1 commit into from May 29, 2023
Merged

Conversation

jschwe
Copy link
Contributor

@jschwe jschwe commented May 29, 2023

Previously config files next to an explicit input file could not be picked up, since the from_root_or_default functions assumes the input path is a directory.
This is the case for all other usages of the function, but in this case we know the input is a file, so we should determine the parent directory and look for the config file in that directory. There can't be a folder with the same name as the input file, so it's not possible that we won't pick up any files anymore that we previously did.

Previously config files next to an explicit input file
could not be picked up, since the `from_root_or_default`
functions assumes the input path is a directory.
This is the case for all other usages of the function, but
in this case we know the input is a file, so we determine
the parent directory and look for the config file in that
directory. There can't be a folder with the same name
as the input file, so it's not possible that we won't
pick up any files anymore that we previously did.
@emilio emilio merged commit 5778380 into mozilla:master May 29, 2023
2 checks passed
@jschwe jschwe deleted the cfg branch May 29, 2023 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants