Skip to content

composer: simplify loading the repositories#4449

Closed
mvo5 wants to merge 1 commit intoosbuild:mainfrom
mvo5:repoConfigs
Closed

composer: simplify loading the repositories#4449
mvo5 wants to merge 1 commit intoosbuild:mainfrom
mvo5:repoConfigs

Conversation

@mvo5
Copy link
Contributor

@mvo5 mvo5 commented Oct 29, 2024

Move to use reporegistry.New(repositoryConfigs) which will do the equivivalent of the existing code and is shorter.

With this merged we can unexport LoadAllRepositories() and remove NewFromDistrosRepoConfigs from the "images" library as this is the only place using them.

Move to use `reporegistry.New(repositoryConfigs)` which will do
the equivivalent of the existing code and is shorter.

With this merged we can unexport `LoadAllRepositories()` and
remove `NewFromDistrosRepoConfigs` from the "images" library
as this is the only place using them.
Copy link
Contributor

@bcl bcl left a comment

Choose a reason for hiding this comment

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

Seems simple enough ;)

@bcl bcl self-requested a review November 5, 2024 00:28
@mvo5
Copy link
Contributor Author

mvo5 commented Nov 11, 2024

Closing for now as the new code make this no longer feasible (i.e. just calling New() like before is no longer an option)

@mvo5 mvo5 closed this Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants