Skip to content

Commit f7573fe

Browse files
authored
Quote head_rev in conda recipes (#892)
This quotes `head_rev` to ensure that commits with leading zeros in the git SHA include those zeros in the output package name. xref: rapidsai/build-planning#176 Authors: - Bradley Dice (https://github.com/bdice) Approvers: - James Lamb (https://github.com/jameslamb) URL: #892
1 parent 470d86b commit f7573fe

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

conda/recipes/cuvs-bench-cpu/recipe.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ context:
66
date_string: '${{ env.get("RAPIDS_DATE_STRING") }}'
77
py_version: ${{ env.get("RAPIDS_PY_VERSION") }}
88
py_buildstring: ${{ py_version | version_to_buildstring }}
9-
head_rev: ${{ git.head_rev(".")[:8] }}
9+
head_rev: '${{ git.head_rev(".")[:8] }}'
1010
linux64: ${{ linux and x86_64 }}
1111

1212
package:

conda/recipes/cuvs-bench/recipe.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ context:
99
date_string: '${{ env.get("RAPIDS_DATE_STRING") }}'
1010
py_version: ${{ env.get("RAPIDS_PY_VERSION") }}
1111
py_buildstring: ${{ py_version | version_to_buildstring }}
12-
head_rev: ${{ git.head_rev(".")[:8] }}
12+
head_rev: '${{ git.head_rev(".")[:8] }}'
1313
linux64: ${{ linux and x86_64 }}
1414

1515
package:

conda/recipes/cuvs/recipe.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ context:
99
date_string: '${{ env.get("RAPIDS_DATE_STRING") }}'
1010
py_version: ${{ env.get("RAPIDS_PY_VERSION") }}
1111
py_buildstring: ${{ py_version | version_to_buildstring }}
12-
head_rev: ${{ git.head_rev(".")[:8] }}
12+
head_rev: '${{ git.head_rev(".")[:8] }}'
1313

1414
package:
1515
name: cuvs

conda/recipes/libcuvs/recipe.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ context:
77
cuda_version: ${{ (env.get("RAPIDS_CUDA_VERSION") | split("."))[:2] | join(".") }}
88
cuda_major: '${{ (env.get("RAPIDS_CUDA_VERSION") | split("."))[0] }}'
99
date_string: '${{ env.get("RAPIDS_DATE_STRING") }}'
10-
head_rev: ${{ git.head_rev(".")[:8] }}
10+
head_rev: '${{ git.head_rev(".")[:8] }}'
1111
linux64: ${{ linux and x86_64 }}
1212

1313
recipe:

0 commit comments

Comments
 (0)