Skip to content

Conversation

@AbrilRBS
Copy link
Member

@AbrilRBS AbrilRBS commented Feb 3, 2026

Changelog: Bugfix: Add default #platform revision to repalce_{tool_}requires
Docs: TODO?

For #19548

This will allow to lock on platform requires in lockfiles. Note that users can specify their own revision instead of using the default one, useful if any change to the system requirement changed and reflecting the binary difference is desired

@memsharded

This comment was marked as outdated.

@AbrilRBS AbrilRBS changed the title Failing test for locked ref that is now a platform_requires Add default #platform revision to repalce_{tool_}requires Feb 10, 2026
@AbrilRBS AbrilRBS linked an issue Feb 10, 2026 that may be closed by this pull request
@AbrilRBS AbrilRBS added this to the 2.26.0 milestone Feb 10, 2026
tc.assert_listed_require({f"dep/1.0#{expected_rev}": "Platform"}, build=is_tool_platform)

tc.run("install --lockfile=platform.lock", assert_error=True)
assert "Package 'dep/1.0' not resolved" in tc.out
Copy link
Member Author

Choose a reason for hiding this comment

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

Wondering if this error should use repr_notime() internally to show the revision if available?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, but maybe unrelated ,so better in another PR?

@AbrilRBS AbrilRBS requested a review from memsharded February 10, 2026 22:09
@AbrilRBS AbrilRBS marked this pull request as ready for review February 10, 2026 22:09
Copy link
Member

@memsharded memsharded left a comment

Choose a reason for hiding this comment

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

Looking good, but I am still wondering if there is some possible risk of breaking? Something that we could be missing?

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.

[bug] cannot use merged lockfile with platform_requires

2 participants