rust-analyzer: 2022-07-11 -> 2022-08-01
This commit is contained in:
parent
2b0dd45aca
commit
a90393eef8
3 changed files with 16 additions and 24 deletions
|
@ -12,20 +12,20 @@
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "rust-analyzer-unwrapped";
|
pname = "rust-analyzer-unwrapped";
|
||||||
version = "2022-07-11";
|
version = "2022-08-01";
|
||||||
cargoSha256 = "sha256-XpLXx3f+BC8+O4Df/PJ4LWuLxX14e/ga+aFu/JxVdpg=";
|
cargoSha256 = "sha256-7ZYrIFSIOlL1JojtaQBIvvlfvjZGlR40PKVjmEtMBMo=";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "rust-lang";
|
owner = "rust-lang";
|
||||||
repo = "rust-analyzer";
|
repo = "rust-analyzer";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-HU1+Rql35ouZe0lx1ftCMDDwC9lqN3COudvMe+8XIx0=";
|
sha256 = "sha256-OUezy1BkIoqpkTE5wOtsjJ/Gy48Ql8EL1/t6MZzRkWw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
# Code format and git history check require more dependencies but don't really matter for packaging.
|
# Code format check requires more dependencies but don't really matter for packaging.
|
||||||
# So just ignore them.
|
# So just ignore it.
|
||||||
./ignore-git-and-rustfmt-tests.patch
|
./ignore-rustfmt-test.patch
|
||||||
];
|
];
|
||||||
|
|
||||||
buildAndTestSubdir = "crates/rust-analyzer";
|
buildAndTestSubdir = "crates/rust-analyzer";
|
||||||
|
|
|
@ -1,18 +0,0 @@
|
||||||
--- a/crates/rust-analyzer/tests/slow-tests/tidy.rs
|
|
||||||
+++ b/crates/rust-analyzer/tests/slow-tests/tidy.rs
|
|
||||||
@@ -6,6 +6,7 @@ use std::{
|
|
||||||
use xshell::{cmd, pushd, pushenv, read_file};
|
|
||||||
|
|
||||||
#[test]
|
|
||||||
+#[ignore]
|
|
||||||
fn check_code_formatting() {
|
|
||||||
let _dir = pushd(sourcegen::project_root()).unwrap();
|
|
||||||
let _e = pushenv("RUSTUP_TOOLCHAIN", "stable");
|
|
||||||
@@ -138,6 +139,7 @@ fn check_cargo_toml(path: &Path, text: String) -> () {
|
|
||||||
}
|
|
||||||
|
|
||||||
#[test]
|
|
||||||
+#[ignore]
|
|
||||||
fn check_merge_commits() {
|
|
||||||
let stdout = cmd!("git rev-list --merges --invert-grep --author 'bors\\[bot\\]' HEAD~19..")
|
|
||||||
.read()
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
--- a/crates/rust-analyzer/tests/slow-tests/tidy.rs
|
||||||
|
+++ b/crates/rust-analyzer/tests/slow-tests/tidy.rs
|
||||||
|
@@ -6,6 +6,7 @@ use std::{
|
||||||
|
use xshell::{cmd, pushd, pushenv, read_file};
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
+#[ignore]
|
||||||
|
fn check_code_formatting() {
|
||||||
|
let _dir = pushd(sourcegen::project_root()).unwrap();
|
||||||
|
let _e = pushenv("RUSTUP_TOOLCHAIN", "stable");
|
Loading…
Reference in a new issue