Skip to content

Add missing Repository parsing methods - #478

Open
msosnicki wants to merge 1 commit into
coursier:mainfrom
msosnicki:repository-parsers
Open

Add missing Repository parsing methods#478
msosnicki wants to merge 1 commit into
coursier:mainfrom
msosnicki:repository-parsers

Conversation

@msosnicki

Copy link
Copy Markdown

Recently, in smithy4s repo, we switched from coursier-core to coursier-interface. During the migration we were missing methods for parsing Repository objects, so some portions of the code had to be inlined temporarily on smithy4s side (see this PR: disneystreaming/smithy4s#1994).

This PR is an attempt to close that gap.

@Gedochao

Copy link
Copy Markdown

@alexarchambault any chance we could push this? it'd actually come in use in Scala 3 REPL.

return ApiHelper.parseRepository(input);
}

public static List<Repository> repositories(List<String> inputs) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
publicstaticList<Repository> repositories(List<String> inputs) {
publicstaticList<Repository> repositories(List<String> inputs) throwsRepositoryParsingError{

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

It'd also be nice to add a test in interface-test to enforce RepositoryParsingError is catchable from Java.

Sign up for freeto 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.

3 participants

@msosnicki@Gedochao@kubukoz