aboutsummaryrefslogtreecommitdiff
path: root/xtask/src
diff options
context:
space:
mode:
Diffstat (limited to 'xtask/src')
-rw-r--r--xtask/src/lib.rs5
-rw-r--r--xtask/src/main.rs5
2 files changed, 6 insertions, 4 deletions
diff --git a/xtask/src/lib.rs b/xtask/src/lib.rs
index 7332a4072..40a6682be 100644
--- a/xtask/src/lib.rs
+++ b/xtask/src/lib.rs
@@ -79,7 +79,7 @@ pub fn run_rustfmt(mode: Mode) -> Result<()> {
79} 79}
80 80
81pub fn install_rustfmt() -> Result<()> { 81pub fn install_rustfmt() -> Result<()> {
82 run(&format!("rustup install {}", TOOLCHAIN), ".")?; 82 run(&format!("rustup toolchain install {}", TOOLCHAIN), ".")?;
83 run(&format!("rustup component add rustfmt --toolchain {}", TOOLCHAIN), ".") 83 run(&format!("rustup component add rustfmt --toolchain {}", TOOLCHAIN), ".")
84} 84}
85 85
@@ -125,7 +125,7 @@ pub fn run_clippy() -> Result<()> {
125} 125}
126 126
127pub fn install_clippy() -> Result<()> { 127pub fn install_clippy() -> Result<()> {
128 run(&format!("rustup install {}", TOOLCHAIN), ".")?; 128 run(&format!("rustup toolchain install {}", TOOLCHAIN), ".")?;
129 run(&format!("rustup component add clippy --toolchain {}", TOOLCHAIN), ".") 129 run(&format!("rustup component add clippy --toolchain {}", TOOLCHAIN), ".")
130} 130}
131 131
@@ -144,6 +144,7 @@ pub fn run_fuzzer() -> Result<()> {
144} 144}
145 145
146pub fn reformat_staged_files() -> Result<()> { 146pub fn reformat_staged_files() -> Result<()> {
147 run_rustfmt(Mode::Overwrite)?;
147 let root = project_root(); 148 let root = project_root();
148 let output = Command::new("git") 149 let output = Command::new("git")
149 .arg("diff") 150 .arg("diff")
diff --git a/xtask/src/main.rs b/xtask/src/main.rs
index c97bfec97..4201c6a6a 100644
--- a/xtask/src/main.rs
+++ b/xtask/src/main.rs
@@ -20,7 +20,7 @@ use xtask::{
20}; 20};
21 21
22// Latest stable, feel free to send a PR if this lags behind. 22// Latest stable, feel free to send a PR if this lags behind.
23const REQUIRED_RUST_VERSION: u32 = 39; 23const REQUIRED_RUST_VERSION: u32 = 40;
24 24
25struct InstallOpt { 25struct InstallOpt {
26 client: Option<ClientOpt>, 26 client: Option<ClientOpt>,
@@ -182,7 +182,8 @@ fn install_client(ClientOpt::VsCode: ClientOpt) -> Result<()> {
182 eprintln!("\nERROR: `npm --version` failed, `npm` is required to build the VS Code plugin") 182 eprintln!("\nERROR: `npm --version` failed, `npm` is required to build the VS Code plugin")
183 } 183 }
184 184
185 Cmd { unix: r"npm ci", windows: r"cmd.exe /c npm ci", work_dir: "./editors/code" }.run()?; 185 Cmd { unix: r"npm install", windows: r"cmd.exe /c npm install", work_dir: "./editors/code" }
186 .run()?;
186 Cmd { 187 Cmd {
187 unix: r"npm run package --scripts-prepend-node-path", 188 unix: r"npm run package --scripts-prepend-node-path",
188 windows: r"cmd.exe /c npm run package", 189 windows: r"cmd.exe /c npm run package",