I have a local workaround in librarian to add the --api-source flag to get quicker feedback when I run librarian init. Cloning googleapis takes an extra minute so I avoid that step when testing locally using the workaround below:
Example usage of librarian init
librarian init -api-source=/usr/local/google/home/partheniou/git/googleapis
partheniou@partheniou-vm-3:~/git/librarian$ git diff
diff --git a/internal/librarian/release_init.go b/internal/librarian/release_init.go
index a45aa76d..db0e13e9 100644
--- a/internal/librarian/release_init.go
+++ b/internal/librarian/release_init.go
@@ -55,6 +55,7 @@ func init() {
fs := cmdInit.Flags
cfg := cmdInit.Config
+ addFlagAPISource(fs, cfg)
addFlagPush(fs, cfg)
addFlagImage(fs, cfg)
addFlagLibrary(fs, cfg)
I have a local workaround in librarian to add the
--api-sourceflag to get quicker feedback when I runlibrarian init. Cloninggoogleapistakes an extra minute so I avoid that step when testing locally using the workaround below:Example usage of
librarian initlibrarian init -api-source=/usr/local/google/home/partheniou/git/googleapis