Skip to content

Fix accidental variable shadowing that broke version resolution.#186

Merged
fweikert merged 3 commits intobazelbuild:masterfrom
fweikert:mig
Oct 16, 2020
Merged

Fix accidental variable shadowing that broke version resolution.#186
fweikert merged 3 commits intobazelbuild:masterfrom
fweikert:mig

Conversation

@fweikert
Copy link
Copy Markdown
Member

Fixes #185

@meteorcloudy
Copy link
Copy Markdown
Member

Is there a way to add a simple test for this?

Copy link
Copy Markdown
Member

@philwo philwo left a comment

Choose a reason for hiding this comment

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

These are the moments where I think maybe using Go wasn't that great of an idea... 🤯

Thanks for fixing it!

@fweikert
Copy link
Copy Markdown
Member Author

One problem is that we don't use single-assignment form for resolvedBazelVersion. We do have internal readability advice for Python that advocates for single-assignment form.

There are some other problems with the test, and I don't want to block the fix on it (given that the entire --migrate feature has been untested forever).
I tested the fix locally.
@fweikert
Copy link
Copy Markdown
Member Author

Filed #187 for test coverage

@fweikert fweikert merged commit dba981e into bazelbuild:master Oct 16, 2020
@fweikert fweikert deleted the mig branch October 16, 2020 14:46
Copy link
Copy Markdown
Member

@meteorcloudy meteorcloudy left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

@meteorcloudy
Copy link
Copy Markdown
Member

Please tell me when a new release is available, then I can help update the Windows image

@meteorcloudy
Copy link
Copy Markdown
Member

Just manually tested this on Windows, it did fix the issue!

@fweikert
Copy link
Copy Markdown
Member Author

Thanks for testing!

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.

bazelisk --migrate failing on Windows in 1.7.2

3 participants