potiuk edited a comment on pull request #20066:
URL: https://github.com/apache/airflow/pull/20066#issuecomment-990173563


   > I am not sure how to fix the pre-commit issue in Generate autocompletion 
for Breeze2 in CI. I have committed that pre-commit hook as part of this PR. I 
didn't get the issue when I am committing the code. Could anyone help me how I 
can fix this?
   
   I think those are crucial:
   
   > sh: 1: Breeze2: not found
   sh: 1: Breeze2: not found
   sh: 1: Breeze2: not found
   
   In your script you have :
   
   ```
   os.system(f"_BREEZE2_COMPLETE=source_{shell} Breeze2 > {autocomplete_path}")
   ```
   
   The problem is that the CI does not have `Breeze2` added in the PATH and the 
script expects it to be. This is actually a good thing that it failed, because 
the CI discovered a specific prerequisite (having Breeze2 in the PATH) that 
others would have also problems with. 
   
   I think what you should do - you should install Breeze in pre-commit's 
virtualenv to get it working :).
   
   Probably the easiest way to run it is to run `python -m pip install -e 
dev/breeze` (inside your python code) before running the generation. That 
should do the trick.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to