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

Use more robust cache locking #150

Merged
merged 3 commits into from
Aug 16, 2024
Merged

Use more robust cache locking #150

merged 3 commits into from
Aug 16, 2024

Conversation

rtimush
Copy link
Collaborator

@rtimush rtimush commented Aug 16, 2024

The lock created by gix-lock is not cleared when the process is killed. This, however, seems to happen quite often when protofetch is used in a cargo build script and a project is opened in VSCode with rust-analyzer.

The lock implementation in this PR is resilient to such issues.

@rtimush rtimush requested a review from a team August 16, 2024 08:39
@rtimush rtimush merged commit 3881e1a into master Aug 16, 2024
16 checks passed
@rtimush rtimush deleted the flock branch August 16, 2024 12:34
@rtimush rtimush mentioned this pull request Aug 16, 2024
rtimush added a commit that referenced this pull request Aug 16, 2024
## 🤖 New release
* `protofetch`: 0.1.7 -> 0.1.8

<details><summary><i><b>Changelog</b></i></summary><p>

<blockquote>

##
[0.1.8](v0.1.7...v0.1.8)
- 2024-08-16

### Other
- Use more robust cache locking
([#150](#150))
- Fix fetching when no branch is specified
([#148](#148))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/MarcoIeni/release-plz/).
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.

2 participants