GitPedia
Home/gofrs/flock/Changelog
gofrs

gofrs/flock

Thread-safe file locking library in Go

18 Releases
Latest: 8mo ago
v0.13.0Latest
ldezldez·8mo ago·October 9, 2025
GitHub

📋 What's Changed

  • Minimum Go version 1.24
  • feat: add Stat method by @ferhatelmas in https://github.com/gofrs/flock/pull/127
  • chore(deps): bump golang.org/x/sys from 0.22.0 to 0.37.0
  • Full Changelog: https://github.com/gofrs/flock/compare/v0.12.1...v0.13.0
v0.12.1
ldezldez·1y ago·July 22, 2024
GitHub

📋 What's Changed

  • tests: add tests about directory support by @ldez in https://github.com/gofrs/flock/pull/89
  • chore(deps): bump golang.org/x/sys from 0.21.0 to 0.22.0 in the all group by @dependabot in https://github.com/gofrs/flock/pull/90
  • fix: missing read-write flag in reopenFDOnError by @crazy-max in https://github.com/gofrs/flock/pull/95

New Contributors

  • @crazy-max made their first contribution in https://github.com/gofrs/flock/pull/95
  • Full Changelog: https://github.com/gofrs/flock/compare/v0.12.0...v0.12.1
v0.12.0
ldezldez·1y ago·July 2, 2024
GitHub

📋 What's Changed

  • feat: differentiation of Solaris and Illumos by @ldez in https://github.com/gofrs/flock/pull/80
  • feat(windows): replace custom implementation with golang.org/x/sys/windows by @ldez in https://github.com/gofrs/flock/pull/81
  • fix: update fnctl implementation by @ldez in https://github.com/gofrs/flock/pull/84
  • feat: use runtime errors instead of compilation errors for unsupported platforms by @ldez in https://github.com/gofrs/flock/pull/85
  • refactor: use x/sys/* instead of Syscall when possible by @ldez in https://github.com/gofrs/flock/pull/87
  • Full Changelog: https://github.com/gofrs/flock/compare/v0.11.0...v0.12.0
v0.11.0
ldezldez·1y ago·June 30, 2024
GitHub

📋 What's Changed

  • feat: add options to define flag and permissions of the file by @ldez in https://github.com/gofrs/flock/pull/76
  • tests: remove files generated during tests by @ldez in https://github.com/gofrs/flock/pull/77
  • Full Changelog: https://github.com/gofrs/flock/compare/v0.10.0...v0.11.0
v0.10.0
ldezldez·1y ago·June 29, 2024
GitHub

📋 What's Changed

  • feat: add support for Illumos/Solaris by @gaige in https://github.com/gofrs/flock/pull/63
  • chore: migrate from gopkg.in/check to stretchr/testify by @ldez in https://github.com/gofrs/flock/pull/70
  • docs: remove reference to sync.Locker by @ldez in https://github.com/gofrs/flock/pull/66

New Contributors

  • @gaige made their first contribution in https://github.com/gofrs/flock/pull/63
  • Full Changelog: https://github.com/gofrs/flock/compare/v0.9.0...v0.10.0
v0.9.0
ldezldez·2y ago·June 26, 2024
GitHub

📋 What's Changed

  • chore: add go modules by @moskyb in https://github.com/gofrs/flock/pull/57
  • chore(deps): bump golang.org/x/sys from 0.20.0 to 0.21.0 by @dependabot in https://github.com/gofrs/flock/pull/65
  • fix: replace Syscall6 with SyscallN on Windows by @ldez

New Contributors

  • @moskyb made their first contribution in https://github.com/gofrs/flock/pull/57
  • @ldez made their first contribution in https://github.com/gofrs/flock/pull/64
  • Full Changelog: https://github.com/gofrs/flock/compare/v0.8.1...v0.9.0
0.8.1v0.8.1
theckmantheckman·5y ago·June 26, 2021
GitHub

📋 Changes

  • Fix issue caused by calling F_SETLKW instead of F_SETLK (#52 [[@jwatson-cgu](https://github.com/jwatson-cgu)])
0.8.0v0.8.0
theckmantheckman·5y ago·August 26, 2020
GitHub

📋 Changes

  • Add AIX platform support (#40 / @Helflym)
0.7.3v0.7.3
theckmantheckman·5y ago·August 26, 2020
GitHub

📋 Changes

  • Fix issues in the license file, update year.
0.7.2v0.7.2
theckmantheckman·5y ago·August 22, 2020
GitHub

📋 Changes

  • Ensure we release file handle if we failed to take an exclusive lock (#43 / @azr, #31 / @virtuald)
0.7.1v0.7.1
theckmantheckman·7y ago·February 24, 2019
GitHub

📋 Changes

  • Fix linting issues and add goreportcard badge (#34 / @tariq1890)
0.7.0v0.7.0
theckmantheckman·7y ago·October 5, 2018
GitHub

📋 Changes

  • add `New()` function to package for creating a flock file.
  • deprecate `NewFlock()` in favor of `New()`
0.6.0v0.6.0
theckmantheckman·7y ago·September 15, 2018
GitHub

📋 Changes

  • Add method to satisfy `io.Closer` interface. Thanks to
0.5.0v0.5.0
theckmantheckman·7y ago·August 12, 2018
GitHub

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.0v0.4.0
theckmantheckman·8y ago·January 24, 2018
GitHub

📋 Changes

  • support for shared locks (RLock) was added by @theory (https://github.com/theckman/go-flock/pull/15) targeting both UNIX and Windows operating systems
0.3.0v0.3.0
theckmantheckman·8y ago·January 12, 2018
GitHub

📋 Changes

  • Fix behavior of TryLock() so that it doesn't return an error when the file is
0.2.0v0.2.0
theckmantheckman·8y ago·October 30, 2017
GitHub

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.0v0.1.0
theckmantheckman·8y ago·October 30, 2017
GitHub

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.