-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Track getenv
calls in module extensions
#22498
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
Conversation
4dbe81f
to
9c7f487
Compare
@@ -82,13 +82,14 @@ | |||
} | |||
} | |||
}, | |||
"moduleExtensionMetadata": null, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure how we feel about null
values popping up here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain a bit why null
ended up here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's because of
https://github.com/bazelbuild/bazel/pull/22498/files#diff-11c1c9cda0a3bafa6f377878111faecc4be3f83ac0a74fe9115f3cb297d78bf2R251
I could add a dedicated type adapter for Optional<String>
to prevent this from happening for other Optional<T>
. What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I think that would be a cleaner solution?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
Tests should be passing now. This was unreasonably annoying due to having to deal with |
ab1569c
to
563742a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@bazel-io fork 7.2.0 |
@meteorcloudy The merge commit broke the lock file, should I force push a fix or are you taking care of that during import? |
We indeed had some trouble merging this one, updating this PR would definitely help! @iancha1992 |
RELNOTES: Changes to environment variables read via `getenv` now correctly invalidate module extensions.
@meteorcloudy Should be resolved |
Fixes #22404 RELNOTES: Changes to environment variables read via `getenv` now correctly invalidate module extensions. Closes #22498. PiperOrigin-RevId: 637058337 Change-Id: Id4aaa4155a728452472eedae4a59c8d29456e512 Co-authored-by: Fabian Meumertzheim <[email protected]>
Fixes #22404
RELNOTES: Changes to environment variables read via
getenv
now correctly invalidate module extensions.