Skip to content
Snippets Groups Projects

fix: run aurweb ssh commands and git scripts in virtualenv

Merged Mario Oenning requested to merge moson/infrastructure:fix-aurweb-run-in-venv into master
  1. Jun 24, 2023
    • Mario Oenning's avatar
      fix: run aurweb ssh commands and git scripts in virtualenv · 21ceb093
      Mario Oenning authored
      
      Adjust bash wrapper scripts to activate our python virtualenv:
      Script execution is triggered from ssh / git.
      These wrapper scripts then call python scripts created by poetry.
      
      We should make sure that this happens within our venv.
      
      Previously this was done by using "poetry run...".
      However, using poetry is costly and adds some delay.
      Instead of using poetry, we can just activate our venv
      and then execute our scripts.
      
      Fixes: b15ac838 ("aurweb: Make SSH faster by avoiding slow Poetry (~2,5 sec faster)")
      
      Signed-off-by: default avatarmoson-mo <mo-son@mailbox.org>
      Verified
      21ceb093
Loading