aboutsummaryrefslogtreecommitdiff
path: root/xtask/src
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-03-20 12:08:36 +0000
committerGitHub <[email protected]>2020-03-20 12:08:36 +0000
commit92b561b5c7da8303473792ba2bacb430614da2d1 (patch)
treeac34751d1957fd6fb0b015b0b884940b6b882db0 /xtask/src
parent467a040509cd6732de48907e025f83b57b5701b9 (diff)
parent8ee7780ca975e5709a080e66e1378ff96e20d613 (diff)
Merge #3663
3663: Make from-source install use cargo installed binary by default r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'xtask/src')
-rw-r--r--xtask/src/dist.rs2
-rw-r--r--xtask/src/install.rs11
2 files changed, 1 insertions, 12 deletions
diff --git a/xtask/src/dist.rs b/xtask/src/dist.rs
index 3a14f8a63..2002d3e2a 100644
--- a/xtask/src/dist.rs
+++ b/xtask/src/dist.rs
@@ -27,7 +27,7 @@ fn dist_client(version: &str, release_tag: &str) -> Result<()> {
27 27
28 patch 28 patch
29 .replace(r#""version": "0.4.0-dev""#, &format!(r#""version": "{}""#, version)) 29 .replace(r#""version": "0.4.0-dev""#, &format!(r#""version": "{}""#, version))
30 .replace(r#""releaseTag": "nightly""#, &format!(r#""releaseTag": "{}""#, release_tag)); 30 .replace(r#""releaseTag": null"#, &format!(r#""releaseTag": "{}""#, release_tag));
31 31
32 if nightly { 32 if nightly {
33 patch.replace( 33 patch.replace(
diff --git a/xtask/src/install.rs b/xtask/src/install.rs
index d0d745b05..bc32a04b3 100644
--- a/xtask/src/install.rs
+++ b/xtask/src/install.rs
@@ -24,7 +24,6 @@ pub struct ServerOpt {
24 24
25impl InstallCmd { 25impl InstallCmd {
26 pub fn run(self) -> Result<()> { 26 pub fn run(self) -> Result<()> {
27 let both = self.server.is_some() && self.client.is_some();
28 if cfg!(target_os = "macos") { 27 if cfg!(target_os = "macos") {
29 fix_path_for_mac().context("Fix path for mac")? 28 fix_path_for_mac().context("Fix path for mac")?
30 } 29 }
@@ -34,16 +33,6 @@ impl InstallCmd {
34 if let Some(client) = self.client { 33 if let Some(client) = self.client {
35 install_client(client).context("install client")?; 34 install_client(client).context("install client")?;
36 } 35 }
37 if both {
38 eprintln!(
39 "
40 Installation complete.
41
42 Add `\"rust-analyzer.serverPath\": \"rust-analyzer\",` to VS Code settings,
43 otherwise it will use the latest release from GitHub.
44"
45 )
46 }
47 Ok(()) 36 Ok(())
48 } 37 }
49} 38}