You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can be a remote URL or a local file path. (default "https://github.com/googleapis/googleapis")
300
+
-branch string
301
+
The branch to use with remote code repositories. This is used to specify
302
+
which branch to clone and which branch to use as the base for a pull
303
+
request. (default "main")
304
+
-build
305
+
If true, Librarian will build each generated library by invoking the
306
+
language-specific container.
307
+
-commit
308
+
If true, librarian will create a commit for the change but not create
309
+
a pull request. This flag is ignored if push is set to true.
310
+
-host-mount string
311
+
For use when librarian is running in a container. A mapping of a
312
+
directory from the host to the container, in the format
313
+
<host-mount>:<local-mount>.
314
+
-image string
315
+
Language specific image used to invoke code generation and releasing.
316
+
If not specified, the image configured in the state.yaml is used.
317
+
-output string
318
+
Working directory root. When this is not specified, a working directory
319
+
will be created in /tmp.
320
+
-push
321
+
If true, Librarian will create a commit,
322
+
push and create a pull request for the changes.
323
+
A GitHub token with push access must be provided via the
324
+
LIBRARIAN_GITHUB_TOKEN environment variable.
325
+
-repo string
326
+
Code repository where the generated code will reside. Can be a remote
327
+
in the format of a remote URL such as https://github.com/{owner}/{repo} or a
328
+
local file path like /path/to/repo. Both absolute and relative paths are
329
+
supported. If not specified, will try to detect if the current working directory
330
+
is configured as a language repository.
331
+
-v enables verbose logging
332
+
272
333
# version
273
334
274
335
Version prints version information for the librarian binary.
APISource: "", // This will trigger the clone of googleapis
106
+
APISource: "https://github.com/googleapis/googleapis", // This will trigger the clone of googleapis
106
107
APISourceDepth: 1,
107
108
Repo: newTestGitRepo(t).GetDir(),
108
109
WorkRoot: t.TempDir(),
109
110
Image: "gcr.io/test/test-image",
110
111
CommandName: generateCmdName,
111
112
},
112
113
wantErr: true,
113
-
wantErrMsg: "repo must be specified",
114
+
wantErrMsg: "repository does not exist",
115
+
setupFunc: func(cfg*config.Config) error {
116
+
// The function will try to clone googleapis into the current work directory.
117
+
// To make it fail, create a non-empty, non-git directory.
0 commit comments