Skip to content

Commit

Permalink
deploy-2-start.yml: Get git url of package without concretizing (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeGat authored Nov 13, 2024
1 parent b427d5b commit 08150ba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/deploy-2-start.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,7 @@ jobs:
# Get the repos associated with the packages for the build database
jq -n '{}' > ${{ env.SPACK_ENV_PATH }}/build-db-pkgs.json
for pkg in ${{ vars.BUILD_DB_PACKAGES }}; do
# TODO: Is there a way to get the git attribute without concretizing?
pkg_repo_url=$(spack python -c "import spack.spec; print(spack.spec.Spec('$pkg').concretized().package.git)")
pkg_repo_url=$(spack python -c "import spack.spec; print(spack.spec.Spec('$pkg').package_class.git)")
# We get the version of $pkg from spack.lock, and then strip
# potential 'git.' and '=VERSION' parts from 'git.TAG=VERSION'
Expand Down

0 comments on commit 08150ba

Please sign in to comment.