[roll] Roll fuchsia [build][go] Add --fuchsia-source-dir parameter to gen_library_metadata.py

Provide a command-line argument to pass the Fuchsia source directory
to the script directly, instead of trying to auto-detect it.

This is needed to support Ninja sub-builds that are launched from
a build directory that is located under the Bazel workspace directory
(i.e. $NINJA_BUILD_DIR/gen/build/bazel/workspace/) which is itself a
fac-simile of the Fuchsia source directory, but does not include a
`.jiri_manifest` file intentionally (i.e. to avoid loud `jiri` errors).

Without this change, the auto-detection failed in this case with a
strange error message that looks like:

```
ValueError: go_library name must correspond to the source dir: got
   'go.fuchsia.dev/fuchsia/tools/lib/flagmisc', expected
   'go.fuchsia.dev/fuchsia/out/default/gen/build/bazel/workspace/tools/lib/flagmisc'
```

Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1168337
Original-Revision: d39cd67af2ad68ee420dac37c7d341e5df61d8fa
GitOrigin-RevId: 29c23dcbe282503340ca1209b0e25885b5964ede
Change-Id: I3dce971d641b8cecabc09e04ef5a6c72f51e938d
1 file changed
tree: 5edef683d51233fda084765485eb0da51374b733
  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.