Fix AppVeyor image
Yesterday, AppVeyor updated the Visual Studio 2019
image to use .NET 5. This update is causing some kind of error with the C compiler toolchain:
$ .build\bazel.exe build --config appveyor //ci/appveyor/...
INFO: Invocation ID: d9511584-16bd-4547-8d86-4ddcfb8a2b76
Loading:
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Analyzing: target //ci/appveyor:purty-6.2.1-win (1 packages loaded)
Analyzing: target //ci/appveyor:purty-6.2.1-win (1 packages loaded, 0 targets configured)
Analyzing: target //ci/appveyor:purty-6.2.1-win (11 packages loaded, 17 targets configured)
Analyzing: target //ci/appveyor:purty-6.2.1-win (30 packages loaded, 77 targets configured)
Analyzing: target //ci/appveyor:purty-6.2.1-win (30 packages loaded, 77 targets configured)
Analyzing: target //ci/appveyor:purty-6.2.1-win (30 packages loaded, 77 targets configured)
ERROR: C:/users/appveyor/_bazel_appveyor/5rhby5jo/external/local_config_cc/BUILD:273:24: unterminated string literal at eol
ERROR: C:/users/appveyor/_bazel_appveyor/5rhby5jo/external/local_config_cc/BUILD:274:1: syntax error at 'Target': expected ,
ERROR: C:/users/appveyor/_bazel_appveyor/5rhby5jo/external/local_config_cc/BUILD:274:17: unterminated string literal at eol
ERROR: C:/users/appveyor/_bazel_appveyor/5rhby5jo/external/local_config_cc/BUILD:275:20: unterminated string literal at eol
ERROR: C:/users/appveyor/_bazel_appveyor/5rhby5jo/external/local_config_cc/BUILD:276:22: unterminated string literal at eol
ERROR: C:/users/appveyor/_bazel_appveyor/5rhby5jo/external/local_config_cc/BUILD:288:9: unterminated string literal at eol
ERROR: C:/users/appveyor/_bazel_appveyor/5rhby5jo/external/local_config_cc/BUILD:289:17: unterminated string literal at eol
ERROR: C:/users/appveyor/_bazel_appveyor/5rhby5jo/external/local_config_cc/BUILD:274:7: positional argument is misplaced (positional arguments come first)
Analyzing: target //ci/appveyor:purty-6.2.1-win (31 packages loaded, 77 targets configured)
Analyzing: target //ci/appveyor:purty-6.2.1-win (31 packages loaded, 77 targets configured)
Analyzing: target //ci/appveyor:purty-6.2.1-win (31 packages loaded, 77 targets configured)
Analyzing: target //ci/appveyor:purty-6.2.1-win (31 packages loaded, 77 targets configured)
Analyzing: target //ci/appveyor:purty-6.2.1-win (31 packages loaded, 77 targets configured)
Analyzing: target //ci/appveyor:purty-6.2.1-win (31 packages loaded, 77 targets configured)
Analyzing: target //ci/appveyor:purty-6.2.1-win (31 packages loaded, 77 targets configured)
Analyzing: target //ci/appveyor:purty-6.2.1-win (31 packages loaded, 77 targets configured)
Analyzing: target //ci/appveyor:purty-6.2.1-win (31 packages loaded, 77 targets configured)
ERROR: C:/users/appveyor/_bazel_appveyor/5rhby5jo/external/rules_pkg/BUILD:35:1: Target '@rules_pkg//:build_tar' depends on toolchain '@local_config_cc//:cc-compiler-x64_windows', which cannot be found: no such target '@local_config_cc//:cc-compiler-x64_windows': target 'cc-compiler-x64_windows' not declared in package '' defined by C:/users/appveyor/_bazel_appveyor/5rhby5jo/external/local_config_cc/BUILD'
ERROR: Analysis of target '//ci/appveyor:purty-6.2.1-win' failed; build aborted: Analysis failed
INFO: Elapsed time: 144.029s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (33 packages loaded, 4290 targets configured)
FAILED: Build did NOT complete successfully (33 packages loaded, 4290 targets configured)
- This first started failing in this build: https://ci.appveyor.com/project/joneshf/purty/builds/36315374.
- Restarting the build still failed: https://ci.appveyor.com/project/joneshf/purty/builds/36316401.
- Rebuilding an old build that passed in the past also failed: https://ci.appveyor.com/project/joneshf/purty/builds/36321505.
We should try to report this to the right place upstream. Unclear if that's rules_haskell
or not.
In the meantime, it seems we can drop down to an older image with image: Previous Visual Studio 2019
in the appveyor.yml
file.