Skip to content

Releases: gofrs/flock

0.8.1

26 Jun 18:51
v0.8.1
6f010d1
Compare
Choose a tag to compare

This change includes one bugfix for AIX:

  • Fix issue caused by calling F_SETLKW instead of F_SETLK (#52 [@jwatson-cgu])

0.8.0

26 Aug 21:32
v0.8.0
75ec202
Compare
Choose a tag to compare

0.7.3

26 Aug 21:31
v0.7.3
6caa735
Compare
Choose a tag to compare
  • Fix issues in the license file, update year.

0.7.2

22 Aug 22:20
v0.7.2
8a39eb4
Compare
Choose a tag to compare
  • Ensure we release file handle if we failed to take an exclusive lock (#43 / @azr, #31 / @virtuald)

0.7.1

24 Feb 12:19
v0.7.1
392e7fa
Compare
Choose a tag to compare
  • Fix linting issues and add goreportcard badge (#34 / @tariq1890)

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.