Skip to content

Add build opt to enable all host substitutions by default#2494

Open
jmacnak wants to merge 1 commit intogoogle:mainfrom
jmacnak:all-host-substitutions
Open

Add build opt to enable all host substitutions by default#2494
jmacnak wants to merge 1 commit intogoogle:mainfrom
jmacnak:all-host-substitutions

Conversation

@jmacnak
Copy link
Copy Markdown
Member

@jmacnak jmacnak commented Apr 30, 2026

Bug: b/507966746
Test:
Add an extra LOG() statement to assemble_cvd.

bazel run //cuttlefish/package:cvd \
-- create

and confirm it does not show the log.

bazel run //cuttlefish/package:cvd \
--//cuttlefish/host/commands/cvd:all_host_substitutions=true \
-- create

and confirm it does show the log.

Bug: b/507966746
Test:
  Add an extra LOG() statement to assemble_cvd.

  ```
  bazel run //cuttlefish/package:cvd \
  -- create
  ```
  and confirm it does not show the log.

  ```
  bazel run //cuttlefish/package:cvd \
  --//cuttlefish/host/commands/cvd:all_host_substitutions=true \
  -- create
  ```
  and confirm it does show the log.
@jmacnak jmacnak force-pushed the all-host-substitutions branch from fc0427f to 3bb2aa4 Compare April 30, 2026 19:03
@jmacnak jmacnak requested a review from Databean April 30, 2026 20:14
Comment on lines +360 to +365
local_defines = select({
"//cuttlefish/host/commands/cvd:all_host_substitutions_enabled": [
"CUTTLEFISH_ENABLE_ALL_HOST_SUBSTITUTIONS_BY_DEFAULT",
],
"//conditions:default": [],
}),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this conflict with #2491 ?

See also the discussion in b/507524719

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh, I had not seen those yet.

cc @ser-io @jemoreira

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