Skip to content
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

Add incompatible flag to disable cfg="host" from Starlark #15436

Merged
merged 1 commit into from
May 9, 2022
Merged

Add incompatible flag to disable cfg="host" from Starlark #15436

merged 1 commit into from
May 9, 2022

Conversation

ckolli5
Copy link

@ckolli5 ckolli5 commented May 9, 2022

Host transitions are problematic where the host and exec environment are
different (e.g., with Remote Execution). This change adds an incompatible
flag that fails analysis if Starlark rules use cfg = "host".

Migrating is pretty straigt forward (replace host with exec) and
should be automatable by buildifier (although I haven't tried to do so).

Closes #14383.

PiperOrigin-RevId: 441253060

Host transitions are problematic where the host and exec environment are
different (e.g., with Remote Execution). This change adds an incompatible
flag that fails analysis if Starlark rules use `cfg = "host"`.

Migrating is pretty straigt forward (replace `host` with `exec`) and
should be automatable by buildifier (although I haven't tried to do so).

Closes #14383.

PiperOrigin-RevId: 441253060
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.

2 participants