@@ -36,11 +36,11 @@ const (
3636)
3737
3838var (
39- // ErrInvalidDistributionName is returned when the distribution name format is invalid.
40- ErrInvalidDistributionName = errors .New ("invalid distribution name" )
39+ // errInvalidDistributionName is returned when the distribution name format is invalid.
40+ errInvalidDistributionName = errors .New ("invalid distribution name" )
4141
42- // ErrAPIConfigNotFound is returned when the API config cannot be found.
43- ErrAPIConfigNotFound = errors .New ("failed to find api config" )
42+ // errAPIConfigNotFound is returned when the API config cannot be found.
43+ errAPIConfigNotFound = errors .New ("failed to find api config" )
4444)
4545
4646// grpcProtoPomData holds the data for rendering POM templates.
@@ -114,7 +114,7 @@ func collectModules(library *config.Library, libraryDir, googleapisDir, monorepo
114114 distName := deriveDistributionName (library )
115115 parts := strings .SplitN (distName , ":" , 2 )
116116 if len (parts ) != 2 {
117- return nil , fmt .Errorf ("%w %q: expected format groupID:artifactID" , ErrInvalidDistributionName , distName )
117+ return nil , fmt .Errorf ("%w %q: expected format groupID:artifactID" , errInvalidDistributionName , distName )
118118 }
119119 gapicGroupID := parts [0 ]
120120 gapicArtifactID := parts [1 ]
@@ -132,7 +132,7 @@ func collectModules(library *config.Library, libraryDir, googleapisDir, monorepo
132132
133133 apiCfg , err := serviceconfig .Find (googleapisDir , api .Path , config .LanguageJava )
134134 if err != nil {
135- return nil , fmt .Errorf ("%w for %s: %w" , ErrAPIConfigNotFound , api .Path , err )
135+ return nil , fmt .Errorf ("%w for %s: %w" , errAPIConfigNotFound , api .Path , err )
136136 }
137137 transport := apiCfg .Transport (config .LanguageJava )
138138
0 commit comments