@@ -109,7 +109,7 @@ func runLibrarianMigration(ctx context.Context, language string, repoPath string
109109 if err := librarian .RunTidyOnConfig (ctx , repoPath , cfg ); err != nil {
110110 return errTidyFailed
111111 }
112- if err := blockLegacyGenerationAndRelease (repoPath , cfg ); err != nil {
112+ if err := blockLegacyGeneration (repoPath , cfg ); err != nil {
113113 return err
114114 }
115115 return nil
@@ -204,12 +204,11 @@ func buildConfigFromLibrarian(ctx context.Context, input *MigrationInput) (*conf
204204 return cfg , nil
205205}
206206
207- // blockLegacyGenerationAndRelease ensures that all libraries in the librarian
208- // config have generation and release blocked in the legacy config, by rewriting
209- // .librarian/config.yaml. This was previously a file maintained by hand, so a
210- // comment line is added at the start. This function assumes that the current
211- // directory is the repository root.
212- func blockLegacyGenerationAndRelease (repoPath string , cfg * config.Config ) error {
207+ // blockLegacyGeneration ensures that all libraries in the librarian config have generation blocked in the legacy
208+ // config, by rewriting .librarian/config.yaml.
209+ // This was previously a file maintained by hand, so a comment line is added at the start. This function assumes that
210+ // the current directory is the repository root.
211+ func blockLegacyGeneration (repoPath string , cfg * config.Config ) error {
213212 legacyConfig , err := readLegacyConfig (repoPath )
214213 if err != nil {
215214 return err
@@ -223,7 +222,6 @@ func blockLegacyGenerationAndRelease(repoPath string, cfg *config.Config) error
223222 legacyConfig .Libraries = append (legacyConfig .Libraries , legacyLib )
224223 }
225224 legacyLib .GenerateBlocked = true
226- legacyLib .ReleaseBlocked = true
227225 }
228226 configYaml , err := yaml .Marshal (legacyConfig )
229227 if err != nil {
0 commit comments