Commit Graph

89 Commits

Author SHA1 Message Date
Benjamin Chen
0db473b1be Delete content of downloads & tmp dirs after full rustup update 2019-10-18 15:22:18 -04:00
Yves Dorfsman
c50626e902 Adding ability to open doc on a specific topic 2019-10-06 10:18:28 -06:00
Daniel Silverstone
fe4f5b5e8a Sort components to make tests stable
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-09-30 08:05:23 +02:00
PicoJr
280679c925 feat: --quiet option
--quiet disables progress output
tests: see `tests/cli-rustup.rs`
2019-09-25 20:36:08 +02:00
Jon Gjengset
4e8bcf5ca5 Make it clearer what each Scenario enables 2019-09-17 14:17:21 -04:00
Andy McCaffrey
540ccc66e2 Adding tests to cli-exact suite for rustup check command 2019-09-12 20:27:51 +02:00
Nick Cameron
ec6d1afcbe Installation profiles (#1673)
* Add profile argument to rustup install

* Address some warnings

Signed-off-by: Nick Cameron <nrc@ncameron.org>

* Review changes

Signed-off-by: Nick Cameron <nrc@ncameron.org>
2019-09-12 09:10:04 +12:00
Fisher Darling
eef4211aa7 Display RUSTUP_HOME in rustup show and rustup show home 2019-07-28 13:01:06 +01:00
Fisher Darling
579599591a Add test for rustup show home. Fixed other test cases. 2019-07-28 13:01:06 +01:00
Lzu Tao
bd844a13cd Fix override_set_unset_with_path 2019-06-06 01:10:30 +07:00
onatm
584c672c44 Test listing of installed targets 2019-04-26 13:10:46 +01:00
Lzu Tao
71178b4aa1 clippy: Fix toplevel_ref_arg 2019-04-20 00:22:47 +07:00
Ivan Tham
012df73324 Use correct host_triple 2019-04-15 22:28:16 +08:00
Ivan Tham
1e6e08bd47 Add --path option to 'rustup override set'
Same as --path in 'rustup override unset'
2019-04-15 12:37:13 +08:00
Lzu Tao
1a92e183f6 Fix most of clippy warnings 2019-04-15 00:20:22 +07:00
Lzu Tao
5f77cd6a4a Remove useless use $crate lines 2019-04-11 03:20:42 +07:00
Dale Wijnand
91af98b610 Remove old multirust & compat code 2019-03-16 21:56:22 +00:00
Dale Wijnand
2572d208c1 Unnest rustup's utils crate 2019-03-14 21:53:02 +00:00
Dale Wijnand
9d467f4708 Merge pull request #1655 from lazorgator/show-override-on-set-default
Tell user if override is set in the environment after `rustup default`
2019-03-06 15:49:34 +00:00
Trevor Miranda
a5dd425af6 Add default_override test 2019-03-06 01:23:19 -05:00
Trevor Miranda
3e9e797664 Add show_active_toolchain_with_override test 2019-02-18 16:25:24 -05:00
Trevor Miranda
7f82720815 Update show_active_toolchain test to reflect new output 2019-02-12 05:05:43 -05:00
Nick Cameron
0f2dd3531a Merge pull request #1639 from lazorgator/remove-component-message
When updating, show "removing old component" to avoid confusion
2019-02-11 22:02:51 +13:00
Dale Wijnand
0857a9f239 Upgrade to Rust 2018 edition idioms 2019-02-08 07:17:03 +01:00
Trevor Miranda
eecd2f20f4 When updating, show "removing old component" to avoid confusion 2019-02-04 23:13:16 -05:00
Daniel Silverstone
36ec58f9a7 rustup: Prevent setting an invalid default host
Perform similar checks to when resolving toolchains in order to
reduce the possibility that the configuration will end up with an
unusable default-host value.  This finally addresses the initial
point in #745 and thus fixes it.

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-01-16 22:14:11 +00:00
Andy Russell
ae1ca03c31 allow non-utf8 arguments in proxies 2019-01-11 16:06:22 -05:00
Nick Cameron
b1324856e6 cargo fmt 2019-01-09 15:23:42 +13:00
Nick Cameron
fda7cb942b fixup tests 2019-01-09 15:23:42 +13:00
Daniel Silverstone
7a8c953ead Reformat entire codebase using cargo fmt
To make sure that people using editors which use rustfmt by default
on saving don't touch more lines than intended when working on the
rustup codebase, we'll take the hit to format it all once.
2018-12-20 20:20:24 +00:00
Ivan Tham
154412a0a3 Add tests 'rustup doc --toolchain' 2018-09-11 17:37:28 +08:00
Diggory Blake
a675b7e288 Merge pull request #1453 from da-x/rustup-doc-path
Add --path flag to 'rustup doc'
2018-07-07 15:11:40 +01:00
Segev Finer
03291884f3 Remove active-toolchain-version and add help for show active-toolchain 2018-07-04 17:00:48 +03:00
Dan Aloni
9f1df88215 test docs_with_path: try to fix for portability 2018-07-01 22:34:55 +03:00
Dan Aloni
2a6cbd764a Add a test for passing --path to rust doc 2018-07-01 19:11:20 +03:00
Segev Finer
250328f325 Add subcommands to "rustup show" for active-toolchain and it's version
This should be useful to shell scripts (via command substitution) and
other programs that need this information.

Related: #450
2018-06-28 12:47:29 +03:00
Cyryl Płotnicki
c0d9b9bb0f Obey rustfmt
Reformatted the code using cargo fmt.
2018-04-10 19:35:26 +01:00
Nick Cameron
dcf0f9d001 tests
This adds a new test and removes test `update_removes_components_that_dont_exist`

Historically, this test was added before the check that aborts update on missing
components (which is tested by the new test in the previous commit, as well as
elsewhere), so I think this test was only testing a bug.

Note that the new behaviour is the same as the ancient behviour when the user
uses `--force`
2018-01-15 09:43:35 +13:00
Simon Sapin
6824535fc6 Automatically install override toolchain when missing.
A typical scenario is:

* I work on a repository that uses `rust-toolchain` to pin to a specific Nightly version
* I run `git pull`, `rust-toolchain` has been changed to update to a new Rust version
* I run `cargo build`

Result before this PR (typically): rustup fails with an error like:

```
error: override toolchain 'nightly-2017-08-31' is not installed
info: caused by: the toolchain file at '/home/simon/projects/servo/rust-toolchain' specifies an uninstalled toolchain
```

A better result would be to install toolchains as needed.

Closes #1218
2017-10-16 01:47:32 +02:00
Michael Fletcher
bc99cc0507 Fix 'show' so it displays helpful information if the active toolchain is not installed.
Fixes #1178
2017-08-11 09:58:31 -06:00
Alex Crichton
b39a87c2ec Merge pull request #1229 from alexcrichton/fixes
Speed up the test suite
2017-08-11 10:19:11 -05:00
Matt Brubeck
72f1159492 Validate triples passed to "rustup set default-host"
Fixes #846.
2017-08-10 20:51:37 -07:00
Alex Crichton
da59c7ee34 Allow tests to run in parallel
This commit edits tests to allow tests to run in parallel instead of taking
global locks. This works by avoiding `env::set_current_dir` and instead tracking
the current directory in the `Config` structure, where all child processes get
an updated cwd.
2017-08-10 20:10:29 -07:00
Brian Anderson
9e1f621b80 Repair bad rename 2017-06-23 10:38:48 -07:00
Brian Anderson
dd718b8719 Ignore show tests on windows 2017-06-23 10:23:37 -07:00
Brian Anderson
2a0f3210d2 Use 'rust-toolchain' instead of '.rust-version'
Also interleave the directory override and rust-toolchain directory walk.
2017-06-23 01:22:44 +00:00
Brian Anderson
107d8e5f1a Teach rustup to override the toolchain from a version file
This adds a .rust-version file similar to rbenv's .ruby-version.

The form of toolchain supported here is limited to channel names,
explicit versions, and optional archive dates.
2017-06-19 20:53:59 +00:00
Diggory Blake
edd013cf8d Update tests 2017-05-29 14:34:48 +01:00
Andrea Canciani
f3aeab3803 Add test for xz tarballs 2017-05-23 08:03:18 +02:00
Robert Vally
1f27bbf269 820 - Removing some dead code. 2017-05-20 11:11:14 +08:00