-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compiler build toolchain does not respect build-dir for cargo bash completions #113728
Comments
My config.toml does not specify a sysconfdir value. By default, it is "/etc". Because it is /etc, it will attempt to install it at root and ignore the build dir prefix: source. This behavior seems a tad bit strange. Shouldn't it be "if the prefix is specified, we'll append sysconfdir" to it similar to the other options "otherwise we'll use default /etc". Then the pathjoining library can resolve join("", "/etc") which is the default and join("/home/user/install/rust", "/etc")? |
we should already be respecting Line 58 in 95e8b6a
can you post the exact error you're seeing, your config.toml, and the commit you're trying to install? |
ok, this replicates the issue:
and the error is
|
ah, i see the problem - anyway, i'll have a fix up shortly. |
I am compiling the rust toolchain from source (this includes cargo, clippy, rustdoc, rust-analyzer and src). I am installing it in a custom folder in my home directory.
When I run
./x.py install
, it appropriately compiles and installs all of those binaries. However, along the way, the script invokes a copy to /etc/bash_completions.d/cargo and appropriately logs that it doesn't have permissions.I expect that ./x.py will respect my build-dir argument and try to install the bash completions in build-dir/etc instead of /etc
The text was updated successfully, but these errors were encountered: