-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Prefix config file with its type #1068
Prefix config file with its type #1068
Conversation
def test_load_config_module(): | ||
with AltArgs(["prog_name", "-c", cfg_module()]): | ||
with AltArgs(["prog_name", "-c", "python:%s" % cfg_module()]): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be nice to keep the test untouched to make sure that we don't break backwards compatibility. We can add a separate test for the python:
prefix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR, @slava-sh :) Three comments:
|
I don't see a point in having two different prefixes for doing one thing. We can choose a prefix different from |
👍 No opinion on |
@berkerpeksag why |
How about |
An alternative idea: use a colon to distinguish between paths and modules, with the colon separating the package from the relative path. Colon is uncommon in filenames because it's not very portable, so it's likely unambiguous. Pyramid does this and calls them asset specifications. "foo/bar" is a relative path |
@tilgovi interesting idea. IF the pattern is already used why not. I was just reusing the pattern existing in trac and other stuff like this. |
Yes. I also like @tilgovi's suggestion since it's already being used in the wild. |
I don't have a preference. Just mentioning it. I haven't seen it anywhere other than Pyramid. If Trac and others have |
I think I like |
i would go for python: the code already exists :)
|
👍 |
Needs a rebase, though. |
I think this can be merged now. |
LGTM |
Prefix config file with its type Fixes #836
Thanks! |
…#1068) I needed to restore the original behavior because some external applications was actually relying on the behavior. https://github.com/apache/incubator-airflow/blob/1.8.0/airflow/bin/cli.py#L775
This is necessary to make `airflow webserver` working with `gunicorn` 19.4+ (benoitc/gunicorn#1068)
Prefix config file with its type Fixes benoitc#836
Fixes #836 as described in @benoitc's comment.