setup-rust icon indicating copy to clipboard operation
setup-rust copied to clipboard

error: failed to install component:

Open moh-eulith opened this issue 2 years ago • 2 comments

Current Behavior

using 'stable' and 'clippy', we get this error output in our build:

error: could not rename component file from '/home/runner/.rustup/tmp/z1zvmlglbrbtie92_dir/bk' to '/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share'
error: could not rename component file from '/home/runner/.rustup/tmp/o6n5z302tzjnjg8g_dir/bk' to '/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share/man'
error: could not rename component file from '/home/runner/.rustup/tmp/ww9sgoi6ognc10qg_dir/bk' to '/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share/doc'
error: could not rename component file from '/home/runner/.rustup/tmp/79uc4ujv5gkcr7aj_dir/bk' to '/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/etc'
error: could not rename component file from '/home/runner/.rustup/tmp/tiwunqrre1danbdc_dir/bk' to '/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share/zsh'
error: failed to install component: 'rust-std-x86_64-unknown-linux-gnu', detected conflict: 'lib/rustlib/x86_64-unknown-linux-gnu/lib/libprofiler_builtins-26fb8c482a26a54a.rlib'

Expected Behavior

install/update should work without error

Additional context/Screenshots

Possible Solution

System-info

  • OS: linux
  • Version ubuntu-20.04
  • Rust Version: 1.62.0 -> 1.62.1

moh-eulith avatar Jul 29 '22 17:07 moh-eulith

According to this, the solution is

The solution is to remove the entire toolchain and reinstall it with all the desired components. There is no need to uninstall all of rustup, but there is also no lesser solution.

But it's unclear how to do that inside this action

moh-eulith avatar Jul 29 '22 17:07 moh-eulith

We are facing the same issue in our project. Here is a CI log: https://github.com/lf-lang/lingua-franca/runs/7914126972?check_suite_focus=true

cmnrd avatar Aug 22 '22 09:08 cmnrd