Skip to content

Commit

Permalink
Ignore separators in project names when looking for BaselineOf packages
Browse files Browse the repository at this point in the history
  • Loading branch information
gcotelli committed Feb 29, 2024
1 parent 3995d77 commit be9d0a6
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ Class {
VersionFromRepositoryResolver >> valueFor: projectName [

| packageName version |
packageName := ('BaselineOf<1s>' expandMacrosWith: projectName) asSymbol.

packageName := ( 'BaselineOf<1s>' expandMacrosWith: ( projectName select: #isAlphaNumeric ) )
asSymbol.
version := ''.
self class environment at: #IceRepository ifPresent: [ :icebergRepository |
version := icebergRepository registry detect: [ :repository |
repository includesPackageNamed: packageName ]
self class environment at: #IceRepository ifPresent: [ :icebergRepository |
version := icebergRepository registry
detect: [ :repository | repository includesPackageNamed: packageName ]
ifFound: [ :repository | self versionFromGitRepository: repository ]
ifNone: [ self versionFromMonticelloRepository: packageName ]
].
Expand Down

0 comments on commit be9d0a6

Please sign in to comment.