Commit 1328cd1
authored
fix(devtools/cmd/migrate-sidekick): fix mismatch in newline handling for documentationoverrides (#3341)
Add on a temp fix on top of the previous fix #3284. This fix tries to
align the expected format for `documentation_overrides` for
`google-cloud-orgpolicy-v1`. This is a brittle change, but as we don't
expect new `documentation_overrides` in the next few days and this is a
one time migration, it should be acceptable.
Verified locally after this change, `librarian generate
google-cloud-orgpolicy-v1` produces no diff. And the only diff it
produced for librarian.yaml is the following:
```
--- a/librarian.yaml
+++ b/librarian.yaml
@@ -1084,14 +1084,16 @@ libraries:
title_override: Organization Policy Types
documentation_overrides:
- id: .google.cloud.orgpolicy.v1.Policy.ListPolicy
- match: 'Ancestry subtrees must be in one of the following formats:'
+ match: |
+ Ancestry subtrees must be in one of the following formats:
replace: |
-
+
Ancestry subtrees must be in one of the following formats:
- id: .google.cloud.orgpolicy.v1.Policy.ListPolicy
- match: The `supports_under` field of the associated `Constraint` defines whether
+ match: |
+ The `supports_under` field of the associated `Constraint` defines whether
replace: |
-
+
The `supports_under` field of the associated `Constraint` defines whether
```
Additional context about this fix:
#3330 (comment)
Fix #33301 parent 3137642 commit 1328cd1
2 files changed
Lines changed: 18 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
807 | 807 | | |
808 | 808 | | |
809 | 809 | | |
810 | | - | |
| 810 | + | |
| 811 | + | |
811 | 812 | | |
812 | | - | |
813 | 813 | | |
814 | 814 | | |
815 | 815 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
789 | 789 | | |
790 | 790 | | |
791 | 791 | | |
792 | | - | |
793 | | - | |
794 | | - | |
795 | | - | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
796 | 797 | | |
797 | 798 | | |
798 | | - | |
799 | | - | |
800 | | - | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
801 | 803 | | |
802 | 804 | | |
803 | 805 | | |
| |||
840 | 842 | | |
841 | 843 | | |
842 | 844 | | |
843 | | - | |
844 | | - | |
| 845 | + | |
| 846 | + | |
845 | 847 | | |
846 | 848 | | |
847 | 849 | | |
848 | 850 | | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
849 | 856 | | |
850 | 857 | | |
851 | 858 | | |
| |||
0 commit comments