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

Race Condition for multiple tools spawned via direnv exec #629

Closed
ryansch opened this issue May 30, 2023 · 1 comment · Fixed by #1005
Closed

Race Condition for multiple tools spawned via direnv exec #629

ryansch opened this issue May 30, 2023 · 1 comment · Fixed by #1005
Labels
bug Something isn't working

Comments

@ryansch
Copy link

ryansch commented May 30, 2023

Describe the bug
I'm running a lot of automated processes via editor tooling; language servers, linters, etc. I'm seeing a lot of extra errors due to race conditions when trying to set up the devenv environment.

Since a lot of these tools are spawned at the same time, it seems that they race to create the various symlinks required by devenv.

Examples:

  • ln: .devenv/profile: File exists
  • ln: .devenv/profile/a4jvj862kmjmlgmqc4f17166n3qhp5b6-devenv-profile: Permission denied

To reproduce
I've created an example rails project with a lot of the tooling we use in our real repos:
https://github.com/detaso/rails-tooling

Version
devenv: 0.6.2

@ryansch ryansch added the bug Something isn't working label May 30, 2023
@domenkozar
Copy link
Member

This is fixed in #745

@domenkozar domenkozar mentioned this issue Jul 27, 2023
7 tasks
@domenkozar domenkozar mentioned this issue Mar 11, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants