Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ignored custom resolver #148

Merged
merged 1 commit into from
Aug 27, 2024
Merged

Fix ignored custom resolver #148

merged 1 commit into from
Aug 27, 2024

Conversation

stanch
Copy link
Contributor

@stanch stanch commented Aug 27, 2024

No description provided.

Copy link

@colmsnowplow colmsnowplow left a comment

Choose a reason for hiding this comment

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

completeApproval

@stanch stanch merged commit 40e237a into master Aug 27, 2024
2 checks passed
@stanch stanch deleted the fix-custom-resolver branch August 27, 2024 18:21
@@ -124,7 +124,7 @@ object Configuration {
resolver <- Resolver.fromConfig[IO](resolverConfig).leftMap(_.show)
completeResolver = resolver.copy(repos = resolver.repos ++ readIgluExtraRegistry())
client <- EitherT.liftF(IgluCirceClient.fromResolver[IO](completeResolver, resolverConfig.cacheSize))
} yield IgluResources(resolver, client)
} yield IgluResources(completeResolver, client)
Copy link
Contributor

Choose a reason for hiding this comment

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

I sometimes use shadowing in for-comprehensions to avoid that category of bug:

  resolver <- Resolver.fromConfig[IO](resolverConfig).leftMap(_.show)
  resolver <- EitherT.rightT[IO, String](resolver.copy(repos = resolver.repos ++ readIgluExtraRegistry()))

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.

3 participants