Commit 9b44189 1 parent 93f7a6c commit 9b44189 Copy full SHA for 9b44189
File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -128,10 +128,13 @@ jobs:
128
128
jq -n '{}' > ${{ env.SPACK_ENV_PATH }}/build-db-pkgs.json
129
129
for pkg in ${{ vars.BUILD_DB_PACKAGES }}; do
130
130
# TODO: Is there a way to get the git attribute without concretizing?
131
- pkg_repo=$(spack python -c "import spack.spec; print(spack.spec.Spec('$pkg').concretized().package.git)")
131
+ pkg_repo_url=$(spack python -c "import spack.spec; print(spack.spec.Spec('$pkg').concretized().package.git)")
132
+ echo "$pkg git URL is $pkg_repo_url"
133
+
134
+ pkg_release_url="${pkg_repo_url%.*}/releases"
132
135
jq \
133
136
--arg p "$pkg" \
134
- --arg r "$pkg_repo " \
137
+ --arg r "$pkg_release_url " \
135
138
'. += {($p): ($r)}' \
136
139
${{ env.SPACK_ENV_PATH }}/build-db-pkgs.json > ${{ env.SPACK_ENV_PATH }}/build-db-pkgs.json.tmp
137
140
mv -f ${{ env.SPACK_ENV_PATH }}/build-db-pkgs.json.tmp ${{ env.SPACK_ENV_PATH }}/build-db-pkgs.json
You can’t perform that action at this time.
0 commit comments