Skip to content

Force reinstall cargo-cache in CircleCI config#151

Open
corinnekrych wants to merge 1 commit intomainfrom
corinnekrych-patch-1
Open

Force reinstall cargo-cache in CircleCI config#151
corinnekrych wants to merge 1 commit intomainfrom
corinnekrych-patch-1

Conversation

@corinnekrych
Copy link
Copy Markdown

when releasing agent we ofter face this failure is coming from this line:

error: binary `cargo-cache.exe` already exists in destination
Add --force to overwrite

So cargo install is failing because the tool is already installed, and by default Cargo refuses to overwrite an existing binary → hence the exit code 1.

CircleCI often:

restores a cache (which includes ~/.cargo/bin)
then runs cargo install again

So the binary is already there → install fails.

Solution: allow overwrite with force option

Proposed changes

Testing Instructions

  1. Step-by-step how to test
  2. Environment or config notes

Related issues

  • Closes #ISSUE-NUMBER

Checklist

  • I consider the submitted work as finished
  • I tested the code for its functionality
  • I wrote test cases for the relevant uses case
  • I added/update the relevant documentation (either on github or on notion)
  • Where necessary I refactored code to improve the overall quality
  • For bug fix -> I implemented a test that covers the bug

Further comments

when releasing agent we ofter face this failure is coming from this line:
```
error: binary `cargo-cache.exe` already exists in destination
Add --force to overwrite
```
So cargo install is failing because the tool is already installed, and by default Cargo refuses to overwrite an existing binary → hence the exit code 1.

CircleCI often:

restores a cache (which includes ~/.cargo/bin)
then runs cargo install again

So the binary is already there → install fails.

Solution: allow overwrite with `force` option
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants