Skip to content

Commit

Permalink
fix: fallback target platform (#65)
Browse files Browse the repository at this point in the history
version updates for `noarch` recipes are currently failing because they
don't include a target_platform key.

With this change we just fall back to `linux-64`.
  • Loading branch information
wolfv authored Jan 15, 2025
1 parent de3e21f commit 5e66905
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rattler_build_conda_compat/jinja/jinja.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def jinja_env(variant_config: Mapping[str, str] | None = None) -> SandboxedEnvir
variant_config = {"target_platform": "linux-64", "build_platform": "linux-64", "mpi": "mpi"}

extra_vars = {}
target_platform = variant_config["target_platform"]
target_platform = variant_config.get("target_platform", "linux-64")
if target_platform != "noarch":
# set `linux` / `win`
platform, arch = target_platform.split("-")
Expand Down

0 comments on commit 5e66905

Please sign in to comment.