-
Notifications
You must be signed in to change notification settings - Fork 42
librarian: dont clone api source for librarian release init #1808
Copy link
Copy link
Description
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)
Reactions are currently unavailable