This add a new rust-analyzer toolchain which fetches and repacks the latest upstream binary release. This is meant to get Emilio's patch so that rust-analyzer uses and indexes our vendored crates[1] and to allow updating rust-analyzer more frequently than the complete Rust toolchain. [1] https://github.com/rust-lang/rust-analyzer/pull/22679 Differential Revision: https://phabricator.services.mozilla.com/D315641
13 lines
419 B
Bash
Executable File
13 lines
419 B
Bash
Executable File
#!/bin/bash
|
|
set -x -e -v
|
|
|
|
# This script is for repacking rust-analyzer from GitHub releases.
|
|
# Instead of a single compressed file rust-analyzer.gz, we want a compressed .tar.zst archive.
|
|
|
|
mkdir -p rust-analyzer/bin
|
|
gunzip -c "$MOZ_FETCHES_DIR/rust-analyzer.gz" > rust-analyzer/bin/rust-analyzer
|
|
chmod +x rust-analyzer/bin/rust-analyzer
|
|
|
|
mkdir -p "$UPLOAD_DIR"
|
|
tar caf "$UPLOAD_DIR"/rust-analyzer.tar.zst rust-analyzer
|