Skip to content

Releases: gofrs/flock

0.7.0

05 Oct 05:08
v0.7.0
7f43ea2
Compare
Choose a tag to compare
  • add New() function to package for creating a flock file.
  • deprecate NewFlock() in favor of New()

These two changes were contributed by Egon Elbre (@egonelbre) in #32.

0.6.0

15 Sep 21:32
v0.6.0
c938b7e
Compare
Choose a tag to compare
  • Add method to satisfy io.Closer interface. Thanks to
    Dustin Spicuzza (@virtuald) for contributing this in #21.

0.5.0

12 Aug 18:31
v0.5.0
dd99ba2
Compare
Choose a tag to compare

This change includes a behavior improvement which should result in this working
across NFS mounts. This is done transparently, and should not require that
consumers change how they use the package. The methodology decided on by
understanding how the flock utility handles this on Linux.

This improvement was contributed by Dustin Spicuzza (@virtuald) in #22.

0.4.0

24 Jan 01:26
v0.4.0
b139a24
Compare
Choose a tag to compare
  • support for shared locks (RLock) was added by @theory (#15) targeting both UNIX and Windows operating systems

0.3.0

12 Jan 06:26
v0.3.0
22bdc08
Compare
Choose a tag to compare

Fix issues in Windows discovered using CI

  • Fix behavior of TryLock() so that it doesn't return an error when the file is
    already locked.

0.2.0

30 Oct 20:40
v0.2.0
d0cbbf0
Compare
Choose a tag to compare

Add TryLockContext method to try and take an exclusive lock, while providing a
retry mechanism with a retry frequency (duration) and a context. This allows you
to retry taking the lock every n milliseconds, and to use the context to time
out after a period t seconds if no lock could be obtained.

This version introduces a dependency on Go 1.7+.

0.1.0

30 Oct 20:26
v0.1.0
a7172a0
Compare
Choose a tag to compare

This is v0.1.0 of go-flock. This is the same functionality that has existed
for awhile, but this creates an explicit tag for it.