Skip to content

Commit db7e3db

Browse files
committed
Update pkg_repo_url logic to use spack.repo.PATH.get_pkg_class()
1 parent 1365242 commit db7e3db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/deploy-2-start.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ jobs:
242242
hash=$(spack find --format '{hash}' $pkg)
243243
version=$(spack find --format '{version}' $pkg)
244244
location=$(spack find --format '{prefix}' $pkg)
245-
pkg_repo_url=$(spack python -c "import spack.spec; print(spack.spec.Spec('$pkg').package_class.git)")
245+
pkg_repo_url=$(spack python -c "print(spack.repo.PATH.get_pkg_class('$pkg').git)")
246246
247247
# We need to create a tmp output file as jq doesn't support in-place read/write
248248
jq \

0 commit comments

Comments
 (0)