salmanishere / pagure

Forked from pagure 5 years ago
Clone

4937c4e Bypass old hooks rather than using non-existing symlinks

Authored and Committed by pingou 5 years ago
    Bypass old hooks rather than using non-existing symlinks
    
    When we moved to the runner architecture, we changed the way hooks are
    called. During this move, we changed all of our existing hooks into
    non-existing symlinks pointing to '/does/not/exists' and we were checking
    if the files on disk were matching this target or not.
    This created a few issue when releasing pagure:
    - python setup.py sdist resolve symlinks as part of the archive creation
      process
      Reported in https://pagure.io/pagure/issue/3782
    - Building pagure failed on some system because these symlinks does not
      exist
      Reported in https://pagure.io/pagure/issue/3706
    
    So in this commit we are dropping the use of symlink and just making
    pagure ignore all the hook it could have created.
    
    Fixes https://pagure.io/pagure/issue/3782
    Fixes https://pagure.io/pagure/issue/3706
    
    Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
    
        
file modified
+3 -4
file modified
+17 -3
file modified
+1 -3