-
Notifications
You must be signed in to change notification settings - Fork 67
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
File locking? #484
Comments
Currently there is no way to do it. Looks like Go provides
|
Just read about SDF. This is really cool! |
Avoiding non-portable APIs makes sense. I'll try Bolt; it likely fits my use case. It looks like Bolt implements its own cross-platform abstraction over I'll leave the issue open: other users could be interested, and I might do the research and PR the feature for you to review at some point. |
Is there a way to lock a file on Linux and *BSD from Joker? I could not find one. My goal is to ensure only one instance of a script at a time can modify a file. Is there a way to use Bolt as a locking mechanism? I see the option of shelling out to flock(1) or wrapping my Joker script in a shell script that runs it with
flock
, but a native solution would be more convenient and elegant.P.S.: Thanks for making Joker! I run it on NetBSD on SDF. It builds and runs on NetBSD without issue.
The text was updated successfully, but these errors were encountered: