brson / brson/multirust

Cargo errors after deleting overridden directory

Open
#92 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
651
Forks
35
PR merge metrics
No merged PRs in 30d

Description

If an override is created for a directory, and that directory then removed, any subsequent calls to cargo or rustc will cause multirust to display an error message before executing. This can only (currently) be resolved by recreating the directory, removing the override, and then removing the directory again.

```
alex@endurance:~> mkdir testing
alex@endurance:~> cd testing/ ; multirust override stable
multirust: using existing install for 'stable'
multirust: override toolchain for '/Users/alex/testing' set to 'stable'
alex@endurance:~/testing> cd .. ; rmdir testing/
alex@endurance:~> rustc
/usr/local/bin/multirust: line 1039: cd: /Users/alex/testing: No such file or directory
/usr/local/bin/multirust: line 1039: cd: /Users/alex/testing: No such file or directory
error: no input filename given
```

Proposed solution in PR #91, allow for users to optionally name the override they would like to remove, so the recreation of the directory is no longer necessary.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.