ShipSoft / cvmfs_release

Setup script and changelog for SHiP CVMFS releases
GNU General Public License v3.0
0 stars 0 forks source link

Cannot find SCM directory in $SHIPDIST #4

Closed olantwin closed 4 months ago

olantwin commented 5 months ago

Sometimes (not sure how to reproduce yet), aliBuild fails with this error.

The error originates here, and is probably due to git failing for some reason while getting the commit hash using git rev-parse HEAD, see also https://github.com/alisw/alibuild/blob/0f62890b388f00e4acebb2c6aab3bdf5eda3f2e3/alibuild_helpers/git.py#L77

Reported by @eduard322

olantwin commented 5 months ago

Using aliBuild from CVMFS, I can not reproduce this.

olantwin commented 4 months ago

Finally managed to reproduce this, the underlying issue is the new git security feature:

fatal: detected dubious ownership in repository at '/cvmfs/ship.cern.ch/24.05/shipdist'
To add an exception for this directory, call:

        git config --global --add safe.directory /cvmfs/ship.cern.ch/24.05/shipdist

Adding the exception fixes the issue.

olantwin commented 4 months ago

Added an entry to the FAQ