[roll] Roll fuchsia [bazel] workspace_utils.py: Fixed missing tracked files

The generate_fuchsia_workspace() function returned a set of
file paths that was missing a number of important input files
that are read by the function. As a consequence modifying any
of them would not properly trigger a regenerator invocation
on the next `fx bazel` or `fx build` call:

- build/bazel/templates/template.bazelrc
- build/bazel/templates/template.bazel.sh
- build/bazel/templates/template.platform.mapping

This fixes the issue by:

- Adding a `read_text_file()` function and `input_files`
  property to the GeneratedWorkspaceFiles class.

- Using them to read input files in record_fuchsia_workspace()

- Add the content of generated.input_files in the result
  of generate_fuchsia_workspace().

Manual comparison of the `build.ninja.d` file generated before
and after the CL confirms that the missing input files are
now properly listed in that file.

Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1227466
Original-Revision: ed6a77ef2eddf25ef685a21b3614654f342bce14
GitOrigin-RevId: e3797addf948e3c6ea70514a8d3036210b3bb108
Change-Id: I1937d69b6189f4ee1e74a566ddafa8b54f799508
1 file changed
tree: 4bda2ea54906f40f01b1104b2adc7579bcf7ce0f
  1. ctf/
  2. git-hooks/
  3. infra/
  4. third_party/
  5. cts
  6. firmware
  7. flower
  8. jiri.lock
  9. MILESTONE
  10. minimal
  11. prebuilts
  12. README.md
  13. stem
  14. test_durations
  15. toolchain
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance in one of the communication channels documented at get involved.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.