Skip to content

fix(parser): support non-standard SCM connection strings (fixes #1645)#1650

Open
arnavsharma990 wants to merge 3 commits intoscalacenter:mainfrom
arnavsharma990:bug/1645-fix-scm-parser
Open

fix(parser): support non-standard SCM connection strings (fixes #1645)#1650
arnavsharma990 wants to merge 3 commits intoscalacenter:mainfrom
arnavsharma990:bug/1645-fix-scm-parser

Conversation

@arnavsharma990
Copy link
Copy Markdown
Contributor

Description

This PR fixes Issue #1645 where projects using sbt-ci-release were not being indexed because their generated POMs used a shorthand SCM connection format (scm:git@... instead of scm:git:git@...).

Changes

  • Updated ScmInfoParser.scala: Modified the regex to make the provider field (git:) optional.
  • Refactoring: Renamed parse to parseRawConnection to better describe its function.
  • Testing: Added a regression test case in ScmInfoParserTests.scala to ensure scm:git@github.com:... is parsed correctly.

Verification

Ran the relevant test suite locally:
sbt "data/testOnly scaladex.data.cleanup.ScmInfoParserTests"
Result: All tests passed.

Screenshot 2025-12-01 at 8 11 04 PM

)

def parse(scmInfo: String): Option[Project.Reference] =
def parseRawConnection(scmInfo: String): Option[Project.Reference] =
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this just a rename? Where is the actual fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants