Skip to content

librarian: dont clone api source for librarian release init #1808

@parthea

Description

@parthea

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)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions