-
Notifications
You must be signed in to change notification settings - Fork 13
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
update buck2 samples using https://github.com/facebook/buck2/pull/826 #372
base: main
Are you sure you want to change the base?
Conversation
7c7b376
to
a12e83b
Compare
@@ -45,6 +45,7 @@ def _platforms(ctx): | |||
return [ | |||
DefaultInfo(), | |||
ExecutionPlatformRegistrationInfo(platforms = [platform]), | |||
PlatformInfo(label = str(name), configuration = configuration), |
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.
Same as before. Plus should this even be part of this PR?
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.
Without these lines the builds fail with the following error:
Expected `root//platforms:remote_platform` to be a `platform()` target, but it had no `PlatformInfo` provider.
Without the str(..)
call this fails with error:
error: Type of parameter `label` doesn't match, expected `str`, actual `target_label (repr: root//platforms:remote_platform)`
23c308b
to
6576ccc
Compare
--target-platforms
to select platform on the command line