This is significantly faster; <1 second instead of 26 seconds. Vendor
used to check out a whole new crates.io index using third-party/.cargo
as the CARGO_HOME.
This job began failing today due to some GitHub Actions change. We'll be
replacing it with a buck2 build shortly anyway so it's not worth
debugging now.
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/runner/work/cxx/cxx/bin/buck/__main__.py", line 25, in <module>
File "/home/runner/work/cxx/cxx/bin/buck/.bootstrap/_pex/pex_bootstrapper.py", line 92, in bootstrap_pex
File "/home/runner/work/cxx/cxx/bin/buck/.bootstrap/_pex/finders.py", line 22, in <module>
File "/home/runner/work/cxx/cxx/bin/buck/.bootstrap/pkg_resources/__init__.py", line 32, in <module>
ModuleNotFoundError: No module named 'symbol'
GitHub's default timeout is 6 hours. Recently some of my GitHub Actions
jobs have started randomly stalling for that long, which is inconvenient
because it ties up a chunk of my runner quota. It appears to be very
rare for a job to recover after stalling. It's better to time out
quicker and retry on a different runner.
Required by the transitive dev-dependency on once_cell.
error: failed to parse manifest at github.com-1ecc6299db9ec823/once_cell-1.15.0/Cargo.toml
Caused by:
feature `edition2021` is required
The package requires the Cargo feature called `edition2021`, but that feature is not stabilized in this version of Cargo (1.55.0 (32da73ab1 2021-08-23)).
Consider trying a newer version of Cargo (this may require the nightly release).
See https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#edition-2021 for more information about the status of this feature.
Required by the transitive dependency on os_str_bytes:
error: package `os_str_bytes v6.2.0` cannot be built because it
requires rustc 1.57.0 or newer, while the currently active rustc
version is 1.56.1
The old version available by default in the GitHub Actions image fails
with:
thread 'main' panicked at 'package cache lock is not currently held, Cargo forgot to call `acquire_package_cache_lock` before we got to this stack frame', /usr/share/rust/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-0.57.0/src/cargo/util/config/mod.rs:1542:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Clippy crash: https://github.com/rust-lang/rust-clippy/issues/7423
thread 'rustc' panicked at '`LateContext::typeck_results` called outside of body', src/tools/clippy/clippy_lints/src/use_self.rs:213:20
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
query stack during panic:
#0 [analysis] running analysis passes on this crate
end of query stack
These are somewhat annoying to set up for local development, and
iterating a PR via GitHub Actions remote builds is painful. Anything
that would break these is always easy enough to fix up afterward.