Francisco Guerrero created CASSANDRA-21430:
----------------------------------------------
Summary: Fix git hooks in cassandra builds where core.symlinks is
false
Key: CASSANDRA-21430
URL: https://issues.apache.org/jira/browse/CASSANDRA-21430
Project: Apache Cassandra
Issue Type: Bug
Reporter: Francisco Guerrero
Assignee: Francisco Guerrero
In systems configured to not follow symlinks in git (i.e. {{git config --global
core.symlinks false}}) the Cassandra build process fails with the following
error message:
{code}
[exec] Running script .git/hooks/post-checkout
[exec] Submodule 'modules/accord'
(https://github.com/apache/cassandra-accord.git) registered for path
'modules/accord'
[exec] Cloning into 'dtest-jars/build/trunk/modules/accord'...
[exec] Submodule path 'modules/accord': checked out
'f09a12da76bbc195ceb05ad859912aeb0a432dda'
[exec] cp: dtest-jars/build/trunk/.build/git/git-hooks/post-switch/*: Not
a directory
BUILD FAILED
{code}
These git configurations can be disabled for many reasons including security
guidance (for example CVE-2024-32002). But the build process should be
resilient to systems with different configurations.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]