Commit 5129d36
authored
chore(librarian): fix generation for google-cloud-compute (#14612)
This PR resolves the following stack trace when generating
google-cloud-compute
```
Traceback (most recent call last):
File "/app/./cli.py", line 532, in handle_generate
_generate_api(api_path, library_id, source, output, version)
File "/app/./cli.py", line 761, in _generate_api
py_gapic_config = _read_bazel_build_py_rule(api_path, source)
File "/app/./cli.py", line 556, in _read_bazel_build_py_rule
result = parse_googleapis_content.parse_content(content)
File "/app/parse_googleapis_content.py", line 133, in parse_content
sl.eval(mod, ast, glb, sl.FileLoader(load))
starlark.StarlarkError: error: Variable `exports_files` not found
--> BUILD.bazel:6:1
|
6 | exports_files(glob(include = ["*grpc_service_config.json"]))
| ^^^^^^^^^^^^^
|
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/app/./cli.py", line 1406, in <module>
args.func(
File "/app/./cli.py", line 538, in handle_generate
raise ValueError("Generation failed.") from e
ValueError: Generation failed.
```1 parent 88db83f commit 5129d36
File tree
2 files changed
+19
-2
lines changed- .generator
- test-resources/librarian
2 files changed
+19
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
98 | 101 | | |
99 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
100 | 107 | | |
101 | 108 | | |
102 | 109 | | |
| |||
119 | 126 | | |
120 | 127 | | |
121 | 128 | | |
122 | | - | |
123 | | - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
124 | 136 | | |
125 | 137 | | |
126 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
127 | 143 | | |
128 | 144 | | |
129 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
0 commit comments