| commit | 76ff06b043f665fb37f855605c13c7d4811bede5 | [log] [tgz] |
|---|---|---|
| author | Kendal Harland <kjharland@fuchsia.infra.roller.google.com> | Mon May 16 15:06:27 2022 +0000 |
| committer | Copybara-Service <copybara-worker@google.com> | Mon May 16 08:07:46 2022 -0700 |
| tree | b552aefb7826f1bfc9d4a29fd6200ec7f2131fb6 | |
| parent | f60bfbdd86a402019ff9c6fe5fa23b6cc747a3a4 [diff] |
[roll] Roll fuchsia [sdk] Fix FIDLs with incorrect sdk category
This change moves FIDLs that are labelled as
"partner" to the "internal" category if they
are not actually published in one of the
partner SDKs.
This change was generated with the following script:
```
#!/bin/bash
# Manifests for partner SDKs
declare -a manifests=(
sdk/manifests/core.manifest
sdk/manifests/core.modular.manifest
sdk/manifests/core_testing.manifest
sdk/manifests/fuchsia_dart.manifest
sdk/manifests/e2e_testing.manifest
sdk/manifests/modular_testing.manifest
)
# Directories containing FIDLs.
declare -a fidl_dirs=(
sdk/fidl/
sdk/banjo/
)
# Get the list of FIDLs in //sdk/fidl marked as “partner”.
grep -rn "sdk_category.*partner" ${fidl_dirs[@]} | cut -d '/' -f 2-3 | xargs -I {} echo "sdk://{}" | sort > partner_fidls.txt
# Get the list of FIDLs in //sdk/manifests/
cat ${manifests[@]} | grep "/fidl/" > published_fidls.txt
cat ${manifests[@]} | grep "/banjo/" >> published_fidls.txt
sort published_fidls.txt | uniq > sorted_published_fidls.txt
# Get FIDLs marked as partner which aren’t actually published.
comm -23 partner_fidls.txt sorted_published_fidls.txt > mislabelled_fidls.txt
# Move all non-published “parnter” FIDLs to “internal”.
cat mislabelled_fidls.txt | cut -d '/' -f 3-4 | xargs -I {} sed -i 's/partner/internal/g' sdk/{}/BUILD.gn
```
Original-Bug: 92348
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/679350
Original-Revision: 097a1daaa7a1a53c4fb384774046e9083f977776
GitOrigin-RevId: 94e1496d992764be43318b33b8f5a46a65953968
Change-Id: I840079274ea270fb02624dc29a073a6e4c7f5426
This repository contains Fuchsia's Global Integration manifest files.
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 via the IRC channel #fuchsia on Freenode.
First install Jiri.
Next run:
$ jiri init $ jiri import minimal https://fuchsia.googlesource.com/integration $ jiri update
Third party projects should have their own subdirectory in ./third_party.