File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -256,12 +256,20 @@ EOF
256256ENV KEY4HEPSPACK_ROOT=${SPACKPACKAGES_ROOT}/repos/key4hep-spack
257257ARG KEY4HEPSPACK_ORGREPO="key4hep/key4hep-spack"
258258ARG KEY4HEPSPACK_VERSION="main"
259- ADD https://github.com/${KEY4HEPSPACK_ORGREPO}.git#${KEY4HEPSPACK_VERSION} ${KEY4HEPSPACK_ROOT}
260- RUN spack repo add --scope site "${KEY4HEPSPACK_ROOT}"
259+ RUN <<EOF
260+ set -e
261+ git clone --filter=tree:0 https://github.com/${KEY4HEPSPACK_ORGREPO}.git ${KEY4HEPSPACK_ROOT}
262+ git -C ${KEY4HEPSPACK_ROOT} checkout ${KEY4HEPSPACK_VERSION}
263+ spack repo add --scope site "${KEY4HEPSPACK_ROOT}"
264+ EOF
261265
262266# # Setup eic-spack (no need for cherry-picks)
263267ENV EICSPACK_ROOT=${SPACKPACKAGES_ROOT}/repos/eic-spack
264268ARG EICSPACK_ORGREPO="eic/eic-spack"
265269ARG EICSPACK_VERSION="develop"
266- ADD https://github.com/${EICSPACK_ORGREPO}.git#${EICSPACK_VERSION} ${EICSPACK_ROOT}
267- RUN spack repo add --scope site "${EICSPACK_ROOT}"
270+ RUN <<EOF
271+ set -e
272+ git clone --filter=tree:0 https://github.com/${EICSPACK_ORGREPO}.git ${EICSPACK_ROOT}
273+ git -C ${EICSPACK_ROOT} checkout ${EICSPACK_VERSION}
274+ spack repo add --scope site "${EICSPACK_ROOT}"
275+ EOF
You can’t perform that action at this time.
0 commit comments