-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
test: unittest pnpm extension version resolution #1932
Conversation
This is in preparation for aspect-build#1907: As dependency resolution gets more complex, we should test it. Note: No updates to to bzl_library targets, because it seems `extensions.bzl` isn't in a bzl_library.
selected = versions[idx] | ||
selected_tuple = _parse_version(selected) | ||
|
||
result.notes.append("NOTE: repo '{}' has multiple versions {}; selected {}".format(name, versions, selected)) |
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.
Why collect "notes" instead of just printing here?
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.
So we can test it easily (unless there is a mechanism in unittest to do that that I don't know about).
@gzm0 I think this was all correctly merged in the other PR? |
Yep, looks like it (seems it got squashed, but the changes are there). |
This is in preparation for #1907: As dependency resolution gets more complex, we should test it.
Note: No updates to to bzl_library targets, because it seems
extensions.bzl
isn't in a bzl_library.Changes are visible to end-users: no
Test plan