facebook / buck2

Build system, successor to Buck
https://buck2.build/
Apache License 2.0
3.33k stars 194 forks source link

Update vswhere.py #635

Closed MattStephanson closed 2 weeks ago

MattStephanson commented 2 weeks ago

Fixes the following error that I encountered:

Action failed: prelude//toolchains/msvc:msvc_tools (vswhere)
Local command returned non-zero exit code 1
Reproduce locally: `env -- "BUCK_SCRATCH_PATH=buck-out\\v2\\tmp\\prelude\\5540ca4c71e1230f\\toolchains\\msvc\\__msvc_too ...<omitted>... " "--rc=buck-out\\v2\\gen\\prelude\\5540ca4c71e1230f\\toolchains\\msvc\\__msvc_tools__\\rc.exe.json" (run `buck2 log what-failed` to get the full command)`
stdout:
stderr:
Traceback (most recent call last):
  File "C:\Users\mstephan\source\buck2-test\buck-out\v2\gen\prelude\5540ca4c71e1230f\toolchains\msvc\__vswhere__\vswhere.py", line 331, in <module>
    main()
  File "C:\Users\mstephan\source\buck2-test\buck-out\v2\gen\prelude\5540ca4c71e1230f\toolchains\msvc\__vswhere__\vswhere.py", line 312, in main
    rc_exe = find_in_path("rc.exe", optional=True)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: find_in_path() got an unexpected keyword argument 'optional'
facebook-github-bot commented 2 weeks ago

Hi @MattStephanson!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!

facebook-github-bot commented 2 weeks ago

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

facebook-github-bot commented 2 weeks ago

@dtolnay has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.