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

Fixes #24907: The list of plugin in info API is always empty #5679

Conversation

fanf
Copy link
Member

@fanf fanf commented May 23, 2024

https://issues.rudder.io/issues/24907

So, at some point ZIO changed implementation of ZIO.succeed to make its parameter call by name, which was not reflected in our syntax add-on, which means that we were capturing the result of the computation and not a real effect.

@fanf fanf requested a review from clarktsiory May 23, 2024 16:16
Copy link
Contributor

@clarktsiory clarktsiory left a comment

Choose a reason for hiding this comment

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

LGTM !

@@ -5,7 +5,7 @@ import zio.IO
* .fail and .succeed were removed in RC18
*/
object syntax {
implicit class ToZio[A](a: A) {
implicit class ToZio[A](a: => A) {
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks legit, but it doesn't seem to fix the issue, however doing a ZIO.succeed(...) explicitly works 🤯 I had to re-install the utils project locally, it works !

@Normation-Quality-Assistant
Copy link
Contributor

OK, merging this PR

@Normation-Quality-Assistant Normation-Quality-Assistant merged commit eef9a4e into Normation:branches/rudder/7.3 May 23, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants