Skip to content

Fix select with condition on darwin.#1674

Merged
DaveGay merged 1 commit intobazelbuild:masterfrom
comius:fix-darwin-condition
Nov 18, 2020
Merged

Fix select with condition on darwin.#1674
DaveGay merged 1 commit intobazelbuild:masterfrom
comius:fix-darwin-condition

Conversation

@comius
Copy link
Copy Markdown
Contributor

@comius comius commented Nov 9, 2020

Bazel is changing how @bazel_tools/conditions:darwin is implemented.
With old implementation based on flags, it was ok to have darwin and
darwin_x86_64 in a select. This was based on flag --cpu=darwin and
--cpu=dawin_x86_64.

New implementation is based on constraints, where "darwin" means OS (and
any CPU), while "darwin_x86_64" mean only specific CPU. As such they
cannot be used in the same select, because the selection would be
ambiguous.

Bazel is changing how @bazel_tools/conditions:darwin is implemented.
With old implementation based on flags, it was ok to have darwin and
darwin_x86_64 in a select. This was base on flag --cpu=darwin and
--cpu=dawin_x86_64.

New implementation is based on constraints, where "darwin" means OS (and
any CPU), while "darwin_x86_64" mean only specific CPU. As such they
cannot be used in the same select, because the selection would be
ambiguous.
@google-cla google-cla Bot added the cla: yes label Nov 9, 2020
@comius comius changed the title Fix conditional select on darwin. Fix select with condition on darwin. Nov 9, 2020
@DaveGay
Copy link
Copy Markdown
Collaborator

DaveGay commented Nov 9, 2020

/gcbrun

1 similar comment
@DaveGay
Copy link
Copy Markdown
Collaborator

DaveGay commented Nov 9, 2020

/gcbrun

@k8s-ci-robot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: comius, DaveGay

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@DaveGay
Copy link
Copy Markdown
Collaborator

DaveGay commented Nov 10, 2020

/gcbrun

@comius
Copy link
Copy Markdown
Contributor Author

comius commented Nov 13, 2020

/gcbrun

@comius
Copy link
Copy Markdown
Contributor Author

comius commented Nov 17, 2020

/gcbrun

@comius
Copy link
Copy Markdown
Contributor Author

comius commented Nov 18, 2020

Is there anyway to push this merge forward? It seems there is a problem with travis CI.

@DaveGay DaveGay merged commit c85e7b6 into bazelbuild:master Nov 18, 2020
goodspark pushed a commit to discord/rules_docker that referenced this pull request Jun 16, 2022
Bazel is changing how @bazel_tools/conditions:darwin is implemented.
With old implementation based on flags, it was ok to have darwin and
darwin_x86_64 in a select. This was base on flag --cpu=darwin and
--cpu=dawin_x86_64.

New implementation is based on constraints, where "darwin" means OS (and
any CPU), while "darwin_x86_64" mean only specific CPU. As such they
cannot be used in the same select, because the selection would be
ambiguous.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants