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

[Feat] [Issue-185] do not use global variables for all wire.Value expressions #397

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

ProgrammingMuffin
Copy link

Fixes Issue-185

Previously, wire used to generate global variables and inject them in place of wire.Value(..) but now it won't create global variables at all and instead puts the value directly from source.

Source:
image

Generated:
image

Copy link

google-cla bot commented Dec 15, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@ProgrammingMuffin ProgrammingMuffin marked this pull request as draft December 15, 2023 14:52
@ProgrammingMuffin
Copy link
Author

testdata/VarValue fails due to program output related problems.

This might be that one edge case where the replaced value is wrong.

@ProgrammingMuffin ProgrammingMuffin marked this pull request as ready for review December 15, 2023 18:16
@ProgrammingMuffin ProgrammingMuffin changed the title [Draft] [Feat] [Issue-185] do not use global variables for all wire.Value expressions [Feat] [Issue-185] do not use global variables for all wire.Value expressions Dec 15, 2023
@ProgrammingMuffin
Copy link
Author

@zombiezen could you please take a look at this PR? Thank you

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.

wire: do not use global variables for all wire.Value expressions
1 participant