Skip to content

Commit 737e0d3

Browse files
authored
fix(internal/librarian): delete prepareLibrary from bump (#3678)
We don't have any reason to run prepareLibrary inside bump anymore since we no longer run generate this in command.
1 parent cc6770e commit 737e0d3

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

internal/librarian/bump.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,6 @@ func runBump(ctx context.Context, cmd *cli.Command) error {
143143
if err != nil {
144144
return err
145145
}
146-
_, err = prepareLibrary(cfg.Language, libConfg, cfg.Default, false)
147-
if err != nil {
148-
return err
149-
}
150146
if err = bumpLibrary(ctx, cfg, libConfg, lastTag, gitExe, versionOverride); err != nil {
151147
return err
152148
}
@@ -164,10 +160,6 @@ func bumpAll(ctx context.Context, cfg *config.Config, lastTag, gitExe string) er
164160
return err
165161
}
166162
for _, library := range cfg.Libraries {
167-
_, err := prepareLibrary(cfg.Language, library, cfg.Default, false)
168-
if err != nil {
169-
return err
170-
}
171163
if shouldRelease(library, filesChanged) {
172164
if err := bumpLibrary(ctx, cfg, library, lastTag, gitExe, ""); err != nil {
173165
return err

0 commit comments

Comments
 (0)