You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "sswander (via GitHub)" <gi...@apache.org> on 2023/08/31 07:05:39 UTC

[GitHub] [airflow] sswander opened a new issue, #33946: first time running airflow CLI does not create airflow.cfg in custom $AIRFLOW_HOME

sswander opened a new issue, #33946:
URL: https://github.com/apache/airflow/issues/33946

   ### Apache Airflow version
   
   2.7.0
   
   ### What happened
   
   Using Airflow 2.7.0, running the following command does not result in airflow.cfg being created
   ```sh
   $ AIRFLOW_HOME=~/airflow_test airflow --help
   
   $ ls ~/airflow_test
   logs # <-- should include airflow.cfg too
   ```
   
   **Further background info**
   Our 3rd party tool invokes `airflow --help` to create a airflow.cfg file into a custom AIRFLOW_HOME env.
   
   ### What you think should happen instead
   
   The 2.7.0 docs mentioned that it will create airflow.cfg in custom AIRFLOW_HOME https://airflow.apache.org/docs/apache-airflow/2.7.0/howto/set-config.html
   
   Therefore, 
   
   ### How to reproduce
   
   Using virtualenv to conveniently reproduce:
   
   ```sh
   virtualenv test_airflow_270
   . test_airflow_270/bin/activate
   
   (test_airflow_270) -> ~ pip install apache-airflow=2.7.0
   (test_airflow_270) -> ~ AIRFLOW_HOME=~/airflow270_test_home airflow --help
   (test_airflow_270) -> ~ ls ~/airflow270_test_home # -> does not contain airflow.cfg
   ```
   
   ### Operating System
   
   macOS Ventura `13.5.1 (22G90)`
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Virtualenv installation
   
   ### Deployment details
   
   _No response_
   
   ### Anything else
   
   This behaved according to the docs in Airflow 2.6.3, but in Airflow 2.7.0 it stopped working
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] Taragolis closed issue #33946: first time running airflow CLI does not create airflow.cfg in custom $AIRFLOW_HOME

Posted by "Taragolis (via GitHub)" <gi...@apache.org>.
Taragolis closed issue #33946: first time running airflow CLI does not create airflow.cfg in custom $AIRFLOW_HOME
URL: https://github.com/apache/airflow/issues/33946


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] sswander commented on issue #33946: first time running airflow CLI does not create airflow.cfg in custom $AIRFLOW_HOME

Posted by "sswander (via GitHub)" <gi...@apache.org>.
sswander commented on issue #33946:
URL: https://github.com/apache/airflow/issues/33946#issuecomment-1700480626

   Hi there! I'm willing to raise PR but I'm very new to Airflow and python, and after spending some time reading the source code, I could not trace where this `airflow.cfg` is created. If there is any pointer, I would gladly follow it up 🙇 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] boring-cyborg[bot] commented on issue #33946: first time running airflow CLI does not create airflow.cfg in custom $AIRFLOW_HOME

Posted by "boring-cyborg[bot] (via GitHub)" <gi...@apache.org>.
boring-cyborg[bot] commented on issue #33946:
URL: https://github.com/apache/airflow/issues/33946#issuecomment-1700479276

   Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org