[roll] Roll fuchsia [cog][fx] Map CWD from Cog => CartFS.

If the CWD is a subdir of the fuchsia Cog checkout, switch to that
subdir of the fuchsia CartFS checkout before running the actual `fx`
subcommand.
That way, arguments like `fx format-code --files=a/relative/path` will
work correctly.

Additionally:
 - Encourage users to run `fx` within the fuchsia directory of
   superproject cog checkouts.
 - Improve "$COG_FUCHSIA_DIR" resolution in the `fx` wrapper.
 - Fix "$CARTFS_FUCHSIA_DIR" path for superprojects.
 - Switch logging globally to stderr instead of stdout.

Original-Bug: 501878950
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1574653
Original-Revision: f5aa2ca7dcb8d3438720dddeb7aa3489d3af113c
GitOrigin-RevId: 5b0ec9bc72f08f64daa9fea74a83fc9b67fd905c
Change-Id: Icfd2bd21e684fd9fe0b69670119c5b30578e0868
1 file changed
tree: 3c96113d8cb5b933465ba649a32e4caf347e721c
  1. ctf/
  2. git-hooks/
  3. infra/
  4. third_party/
  5. cobalt
  6. flower
  7. jiri.lock
  8. MILESTONE
  9. minimal
  10. prebuilts
  11. README.md
  12. stem
  13. test_durations
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.