Skip to content

fix: Build source packages for the target platform - #359

Merged
Pavel Zwerschke (pavelzw) merged 1 commit into
mainfrom
fix/source-target-platform
Nov 1, 2026
Merged

Pavel Zwerschke (pavelzw) merged 1 commit into
mainfrom
fix/source-target-platform

Conversation

@pavelzw

Copy link
Copy Markdown
Member

Motivation

build_local_package passed the platform we pack for as --build-platform to pixi publish. That sets the platform the build runs on, while the package is still built for the host as target platform. For noarch source packages this happens to work, but an arch-specific source package packed for another platform (e.g. linux-64 from osx-arm64) would be built for the wrong platform or fail.

Changes

  • Pass the packed platform as --target-platform instead of --build-platform (the build platform stays the host's default).
  • Update the corresponding log messages.

test_pixi_pack_source passes locally (osx-arm64 host, packing linux-64).

@pavelzw
Pavel Zwerschke (pavelzw) merged commit d49a83b into main Nov 1, 2026
21 checks passed
@pavelzw
Pavel Zwerschke (pavelzw) deleted the fix/source-target-platform branch November 1, 2026 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants