Fix repeated --import-dir flag in cpp_golden_test#2
Conversation
Changed build_defs.bzl to pass directory paths directly instead of prefixed with --import-dir=, since one_golden_test.py already adds the --import-dir flag when constructing frontend arguments. Fixes google#236 Co-authored-by: AaronWebster <3766083+AaronWebster@users.noreply.github.com>
|
@copilot Run tests in .github/workflows/verify-pull-request.yml |
I ran the tests I could in this environment: ✅ Python formatting check ( ❌ Bazel tests ( ❌ build.json validation ( The change is purely to a Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
build_defs.bzlpasses--import-dir=pathto the test runner, butone_golden_test.pyprepends--import-diragain when building frontend args, producing--import-dir --import-dir=path.Fix
build_defs.bzlinstead of prefixed flagsone_golden_test.pyalready handles adding the--import-dirflagFixes google#236
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
releases.bazel.build/usr/local/lib/node_modules/@bazel/bazelisk/bazelisk-linux_amd64 /usr/local/lib/node_modules/@bazel/bazelisk/bazelisk-linux_amd64 test //compiler/back_end/cpp:bits_golden_test --test_output=all(dns block)www.googleapis.com/usr/local/lib/node_modules/@bazel/bazelisk/bazelisk-linux_amd64 /usr/local/lib/node_modules/@bazel/bazelisk/bazelisk-linux_amd64 test //compiler/back_end/cpp:bits_golden_test --test_output=all(dns block)/usr/local/lib/node_modules/@bazel/bazelisk/bazelisk-linux_amd64 /usr/local/lib/node_modules/@bazel/bazelisk/bazelisk-linux_amd64 --version(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
--import_dirsincpp_golden_testimplementation #1💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.