Skip to content

Should be allowed to set remote --spawn_strategy without remote_executor set #13340

@brentleyjones

Description

@brentleyjones

Description of the problem / feature request:

Currently, if you set a manual --spawn_strategy that includes remote, but remote_executor isn't set, you get an error about an unknown spawn strategy (because the RemoteModule isn't loaded). This makes it very difficult to customize the spawn strategy that should be used (e.g. disabling sandboxing on macOS, but conditionally enabling remote execution).

Instead of preventing remote, it should simply ignore it if remote_executor is not set. This would allow customizing the default --spawn_strategy (which conditionally adds remote).

Feature requests: what underlying problem are you trying to solve with this feature?

The ability to easily customize --spawn_strategy while conditionally using remote execution.

What operating system are you running Bazel on?

macOS

What's the output of bazel info release?

release 4.0.0

Metadata

Metadata

Assignees

Labels

P2We'll consider working on this in future. (Assignee optional)team-Remote-ExecIssues and PRs for the Execution (Remote) teamtype: feature request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions