@@ -94,7 +94,7 @@ Examples:
9494 if all && versionOverride != "" {
9595 return errBothVersionAndAllFlag
9696 }
97- cfg , err := yaml.Read [config.Config ](librarianConfigPath )
97+ cfg , err := yaml.Read [config.Config ](config . LibrarianYAML )
9898 if err != nil {
9999 return err
100100 }
@@ -277,7 +277,7 @@ func deriveNextVersion(ctx context.Context, gitExe string, cfg *config.Config, l
277277}
278278
279279func loadBranchLibraryVersion (ctx context.Context , gitExe , remote , branch , libName string ) (string , error ) {
280- branchLibrarianCfgFile , err := git .ShowFileAtRemoteBranch (ctx , gitExe , remote , branch , librarianConfigPath )
280+ branchLibrarianCfgFile , err := git .ShowFileAtRemoteBranch (ctx , gitExe , remote , branch , config . LibrarianYAML )
281281 if err != nil {
282282 return "" , err
283283 }
@@ -338,7 +338,7 @@ func findReleasedLibraries(cfgBefore, cfgAfter *config.Config) ([]string, error)
338338// release process has not yet been completed (e.g. to find which commit
339339// *should* be tagged).
340340func findLatestReleaseCommitHash (ctx context.Context , gitExe string ) (string , error ) {
341- commits , err := git .FindCommitsForPath (ctx , gitExe , librarianConfigPath )
341+ commits , err := git .FindCommitsForPath (ctx , gitExe , config . LibrarianYAML )
342342 if err != nil {
343343 return "" , err
344344 }
@@ -348,7 +348,7 @@ func findLatestReleaseCommitHash(ctx context.Context, gitExe string) (string, er
348348 var candidateConfig * config.Config
349349 candidateCommit := ""
350350 for _ , commit := range commits {
351- commitCfgContent , err := git .ShowFileAtRevision (ctx , gitExe , commit , librarianConfigPath )
351+ commitCfgContent , err := git .ShowFileAtRevision (ctx , gitExe , commit , config . LibrarianYAML )
352352 if err != nil {
353353 return "" , err
354354 }
0 commit comments