Commit graph

5 commits

Author SHA1 Message Date
Martin Hebnes Pedersen
80a19c174e Remove legacy // +build comments
Only required for Go 1.16 or older (which we no longer support)
2025-10-31 12:35:23 +01:00
Martin Hebnes Pedersen
f9332e806a go fmt (Go 1.17 build tags changes) 2022-03-15 22:42:15 +01:00
Chris Keller
e68850056e Fix some Go linter errors
* Replace(..., -1) with ReplaceAll
* Variable names hiding packages
* Error messages start with lowercase and no end punctuation
* Don't `defer` in a loop
* Etc.
2021-08-20 21:35:21 +02:00
Martin Hebnes Pedersen
8e003ac4fc Fix osutil build error on FreeBSD
Closes #240
2021-06-14 22:52:22 +02:00
Martin Hebnes Pedersen
dc53fb8dad Attempt to increase soft max open fs limit on unix
When watching directories with many files using fsnotify, we might end
up reaching the limit on max open file descriptors. The first limit
reached is often a soft limit, usually substantially lower than the hard
limit set by the OS.

This patch tries to raise the soft limit before starting fsnotify. This
is especially important on macOS which has a default soft limit of only
256.

Closes #176
2019-12-08 23:26:45 +01:00