Skip to content
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

Fix build-mdbook CI failure #5574

Merged
merged 2 commits into from
Feb 7, 2024
Merged

Fix build-mdbook CI failure #5574

merged 2 commits into from
Feb 7, 2024

Conversation

sdankel
Copy link
Member

@sdankel sdankel commented Feb 7, 2024

Description

build-mdbook was failing on multiple PRs with

Run cargo install --locked --debug --path ./forc
error: binary `forc` already exists in destination
Add --force to overwrite

https://github.com/FuelLabs/sway/actions/runs/7819113568/attempts/1?pr=5569
https://github.com/FuelLabs/sway/actions/runs/7816891674/job/21336246772?pr=5565

cargo install keeps track of which binaries it has installed in ~/.cargo/crates.toml and ~/.cargo.crates2.json. By using the entire cached cargo directory, cargo is able to tell that it has previously installed the binaries and install correctly.

Checklist

  • I have linked to any relevant issues.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have updated the documentation where relevant (API docs, the reference, and the Sway book).
  • I have added tests that prove my fix is effective or that my feature works.
  • I have added (or requested a maintainer to add) the necessary Breaking* or New Feature labels where relevant.
  • I have done my best to ensure that my PR adheres to the Fuel Labs Code Review Standards.
  • I have requested a review from the relevant team or maintainers.

@sdankel sdankel marked this pull request as ready for review February 7, 2024 21:47
@sdankel sdankel enabled auto-merge (squash) February 7, 2024 21:48
@sdankel sdankel requested review from ironcev, kayagokalp and a team February 7, 2024 21:49
Copy link
Member

@kayagokalp kayagokalp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏

@sdankel sdankel requested a review from a team February 7, 2024 21:52
@sdankel sdankel merged commit adfc551 into master Feb 7, 2024
34 checks passed
@sdankel sdankel deleted the sdankel-patch-1 branch February 7, 2024 22:16
sdankel added a commit that referenced this pull request Feb 8, 2024
## Description

`build-mdbook` was failing on multiple PRs with 

```
Run cargo install --locked --debug --path ./forc
error: binary `forc` already exists in destination
Add --force to overwrite
```


https://github.com/FuelLabs/sway/actions/runs/7819113568/attempts/1?pr=5569

https://github.com/FuelLabs/sway/actions/runs/7816891674/job/21336246772?pr=5565

`cargo install` keeps track of which binaries it has installed in
~/.cargo/crates.toml and ~/.cargo.crates2.json. By using the entire
cached `cargo` directory, cargo is able to tell that it has previously
installed the binaries and install correctly.

## Checklist

- [ ] I have linked to any relevant issues.
- [ ] I have commented my code, particularly in hard-to-understand
areas.
- [ ] I have updated the documentation where relevant (API docs, the
reference, and the Sway book).
- [ ] I have added tests that prove my fix is effective or that my
feature works.
- [ ] I have added (or requested a maintainer to add) the necessary
`Breaking*` or `New Feature` labels where relevant.
- [ ] I have done my best to ensure that my PR adheres to [the Fuel Labs
Code Review
Standards](https://github.com/FuelLabs/rfcs/blob/master/text/code-standards/external-contributors.md).
- [ ] I have requested a review from the relevant team or maintainers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants