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

fix: existing file/dir always checks default #297

Merged
merged 1 commit into from
May 16, 2022

Conversation

pyqlsa
Copy link
Contributor

@pyqlsa pyqlsa commented May 1, 2022

Updated existing-file/dir mappers to early return if already set successfully, such that the default value is not checked if a user-provided value has already been verified successfully. This is intended to avoid failures when a default value does not exist and the user-provided value does, allowing for successful continuation.

Added tests for existing-file/dir mappers.

Intended to fix #26

@pyqlsa
Copy link
Contributor Author

pyqlsa commented May 16, 2022

cc @alecthomas Friendly bump

@alecthomas
Copy link
Owner

LGTM thanks!

Mind rebasing and I'll merge?

@pyqlsa
Copy link
Contributor Author

pyqlsa commented May 16, 2022

Pulled in changes, but looks like that introduced an unused import (and it looks like #305 is already intended to address). I'll wait for that PR to land, rebase, then we should be good!

@alecthomas
Copy link
Owner

#305 is merged!

@pyqlsa pyqlsa force-pushed the fix/existing-default-check branch from 7a9272b to e327cf3 Compare May 16, 2022 22:19
updated existing file/dir mappers to early return if already set;
added tests for existing file/dir mappers;
@pyqlsa pyqlsa force-pushed the fix/existing-default-check branch from e327cf3 to ba6fc72 Compare May 16, 2022 22:20
@pyqlsa
Copy link
Contributor Author

pyqlsa commented May 16, 2022

Rebased, I'm GTG.

@alecthomas alecthomas merged commit 0aaa4c1 into alecthomas:master May 16, 2022
@pyqlsa pyqlsa deleted the fix/existing-default-check branch May 16, 2022 22:37
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.

"existingfile"/"existingdir" always checks default value
2 participants