Skip to content

Commit 12b7aad

Browse files
committed
Copy patch files to Spack builtin repo
Spack patch files must be in the same directory as package.py. Copy all *.patch files from packaging/spack/ to the builtin repo alongside package.py so Spack can find them when applying patches.
1 parent e55c0ec commit 12b7aad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/spack.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,10 @@ jobs:
172172
# Find the actual builtin repo location
173173
BUILTIN_REPO=$(spack repo list | grep builtin | awk '{print $NF}')
174174
echo "Builtin repo location: $BUILTIN_REPO"
175-
# Copy package to the builtin repo
175+
# Copy package and patch files to the builtin repo
176176
mkdir -p "$BUILTIN_REPO/packages/mfc"
177177
cp packaging/spack/package.py "$BUILTIN_REPO/packages/mfc/"
178+
cp packaging/spack/*.patch "$BUILTIN_REPO/packages/mfc/" 2>/dev/null || true
178179
# Verify package is visible
179180
spack list mfc
180181

0 commit comments

Comments
 (0)