Skip to content

Conversation

ruben-arts
Copy link
Contributor

Fixes #399

Tested with the example in https://github.com/noahjutz/robostack-build-local-package-issue-minimal/tree/main, thanks @noahjutz for this!

We just took the binary_spec but if it's source, that will property returns None, resulting in the error from the issue. This change deals with that by forcing a dependency from source to be only from source, skipping the merge code.
If in the future this code would be reached, we now do type checking to avoid this strange error.

@wolfv
Copy link
Member

wolfv commented Oct 8, 2025

@ruben-arts not sure what's happening here but do we need to "merge" any specs at all? Or is this when there is a source spec and another spec at the same time (in which case we should ignore everything except the source one?).

assert "contains spaces" in str(exc)


def test_specs_with_none():
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we maybe add a test with source usecase?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added one

@ruben-arts
Copy link
Contributor Author

@wolfv, you're correct I do think we can simplify it, discussing it with @daenny.

@ruben-arts
Copy link
Contributor Author

This is failing due to not having the latest py-pixi-build-backend available in the channel

"py_rattler",
"py-pixi-build-backend",
# TODO: publish to pypi
# "py-pixi-build-backend",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if it should be also lowercase like py_rattler?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the conda-forge maintainers asked me to use -s

@ruben-arts ruben-arts merged commit fca546e into prefix-dev:main Oct 14, 2025
14 checks passed
@ruben-arts ruben-arts deleted the fix/prio_source_deps_on_merge branch October 14, 2025 11:38
Hofer-Julian pushed a commit to Hofer-Julian/pixi-build-backends that referenced this pull request Oct 14, 2025
Hofer-Julian pushed a commit to Hofer-Julian/pixi-build-backends that referenced this pull request Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(ROS) Dependency Extraction : Building ros2 package with local dependent pkgs

3 participants