[ 
https://issues.apache.org/jira/browse/AIRFLOW-4754?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16859540#comment-16859540
 ] 

ASF GitHub Bot commented on AIRFLOW-4754:
-----------------------------------------

BasPH commented on pull request #5396: [AIRFLOW-4754] Fixed failure when no 
.git repo is found
URL: https://github.com/apache/airflow/pull/5396
 
 
   
 
----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> Exception is thrown when .git folder is not found by setup.py (for example in 
> DockerHub)
> ----------------------------------------------------------------------------------------
>
>                 Key: AIRFLOW-4754
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-4754
>             Project: Apache Airflow
>          Issue Type: Sub-task
>          Components: ci
>    Affects Versions: 2.0.0
>            Reporter: Jarek Potiuk
>            Assignee: Jarek Potiuk
>            Priority: Major
>
> {code:java}
> Complete output from command /usr/local/bin/python -c "import setuptools, 
> tokenize;__file__='/opt/airflow/setup.py';f=getattr(tokenize, 'open', 
> open)(__file__);code=f.read().replace('\r\n', 
> '\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps:
> Traceback (most recent call last):
> File "<string>", line 1, in <module>
> File "/opt/airflow/setup.py", line 458, in <module>
> do_setup()
> File "/opt/airflow/setup.py", line 319, in do_setup
> write_version()
> File "/opt/airflow/setup.py", line 152, in write_version
> text = "{}".format(git_version(version))
> File "/opt/airflow/setup.py", line 132, in git_version
> repo = git.Repo('.git')
> File "/usr/local/lib/python3.6/site-packages/git/repo/base.py", line 131, in 
> __init__
> raise NoSuchPathError(epath)
> git.exc.NoSuchPathError: /opt/airflow/.git{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to