-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add default #platform revision to repalce_{tool_}requires
#19561
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop2
Are you sure you want to change the base?
Add default #platform revision to repalce_{tool_}requires
#19561
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
#platform revision to repalce_{tool_}requires
| 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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
memsharded
left a comment
There was a problem hiding this 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?
Changelog: Bugfix: Add default
#platformrevision torepalce_{tool_}requiresDocs: 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