Skip to content

Commit 385f0fa

Browse files
committed
devel/build: Filter out "_x86_64-microarch-level" from locked recipe
Prevent errors installing with micromamba.
1 parent f695f91 commit 385f0fa

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

devel/build

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ lock() {
4949
# somehow or leverage libmamba directly to obtain it…
5050
# -14 Oct 2022
5151
log "Updating $repo/locked/recipe.yaml"
52+
# Filtering out the "_x86_64-microarch-level" dependency as it causes
53+
# errors when installing with micromamba
54+
# See <https://github.com/nextstrain/conda-base/issues/105>
5255
yq \
5356
--yaml-roundtrip \
5457
--slurpfile rendered <(rendered-recipe | yaml-to-json) \
@@ -57,7 +60,8 @@ lock() {
5760
| .build.string = $rendered[0].build.string + "_locked"
5861
| .requirements.run = (
5962
$rendered[0].requirements.run
60-
| map(split(" ") | "\(.[0]) ==\(.[1]) \(.[2])"))
63+
| map(select(. | startswith("_x86_64-microarch-level") | not)
64+
| split(" ") | "\(.[0]) ==\(.[1]) \(.[2])"))
6165
' \
6266
< src/recipe.yaml \
6367
> locked/recipe.yaml

0 commit comments

Comments
 (0)