Jakob Borg
c7027d4f74
fix: remove test path that does not exist any more
2025-05-28 16:49:37 +02:00
Jakob Borg
9dd14de754
Merge remote-tracking branch 'upstream/master'
...
* upstream/master:
Update README.md
switch from runloops to dispatch queues
all: make tests pass on macOS, do assorted cleanup
all: gofmt with Go 1.19
FreeBSD: don't crash on unix domain sockets
Replace syncthing-notify with syncthing in projects
2025-05-28 16:30:01 +02:00
Tommy van der Vorst
f0fa8f99c2
chore: use kqueue on iOS, not FSEvents like on macOS ( #4 )
2025-02-07 09:22:49 +01:00
rjeczalik
8c8ecfea2e
Update README.md
2023-02-21 12:23:02 +01:00
Rafal Jeczalik
bc7f94f136
Merge pull request #215 from josharian/dispatch-queue
...
dispatch queue
2023-01-12 16:57:47 +01:00
Josh Bleecher Snyder
f02e83b80b
switch from runloops to dispatch queues
...
This simplifies the code and removes a runloop-related deprecation.
Fixes #212
2022-12-13 16:31:00 -08:00
Rafal Jeczalik
cbbb2084a2
Merge pull request #214 from josharian/cleanup
...
all: do assorted cleanup, make tests pass
2022-12-14 01:29:51 +01:00
Josh Bleecher Snyder
130b672f69
all: make tests pass on macOS, do assorted cleanup
...
Add go.sum to placate cmd/go.
Check error from os.RemoveAll in test.
Make NewNotifyTest and friends handle cleanup.
This way the callers don't need to manage it.
It is also more robust in the face of test failure,
and thus less likely to strand testdata test files.
Use t.TempDir instead of ioutil.TempDir.
Use os.SameFile to test for path equality.
On macOS, the temp dir is located in /var, which can also
have path /private/var. Make the tests resilient to
changes in the exact path name.
With this fix, all tests now pass locally on macOS.
Be more careful about cleaning up test trees.
Fatalf calls runtime.Goexit, which doesn't run deferred funcs.
Remove the defer and just call RemoveAll directly.
This should help prevent stranded testdata dirs on test failure.
Remove ioutil.
It is deprecated.
2022-12-13 09:36:38 -08:00
Rafal Jeczalik
11c1ede835
Merge pull request #213 from josharian/gofmt
...
all: gofmt with Go 1.19
2022-12-07 09:22:17 +01:00
Josh Bleecher Snyder
5cb91165ce
all: gofmt with Go 1.19
2022-12-06 12:18:50 -08:00
Rafal Jeczalik
3472d85e95
Merge pull request #209 from dvachaiev/patch-1
...
FreeBSD: don't crash on unix domain sockets
2021-08-09 13:31:54 +02:00
dvachaiev
1f928fd21b
FreeBSD: don't crash on unix domain sockets
2021-07-29 17:27:29 +03:00
Rafal Jeczalik
2a8f49503d
Merge pull request #206 from imsodin/patch-1
...
Replace syncthing-notify with syncthing in projects
2021-06-16 21:18:16 +02:00
Simon Frei
787799675d
Replace syncthing-notify with syncthing in projects
2021-06-16 21:07:34 +02:00
Simon Frei
c6b7342338
Merge remote-tracking branch 'upstream/master'
2021-06-16 21:05:10 +02:00
Rafal Jeczalik
135d4685af
Merge pull request #199 from solsson/gow-mention
...
Adds another project that uses notify: Go Watch
2021-06-12 15:25:04 +02:00
Rafal Jeczalik
ac08b8c6c9
Merge pull request #175 from third-light/forward-FSEventStreamEventFlagMustScanSubDirs
...
Forward FSEventsUserDropped, FSEventsKernelDropped, FSEventsMustScanSubDirs
2021-06-12 15:23:32 +02:00
Rafal Jeczalik
743ea07503
Merge pull request #201 from syncthing/fix-200
...
Fixes for non-recursive tree when dirs are deleted (fixes #200 )
2021-06-12 15:22:24 +02:00
Simon Frei
f45149b049
Fixes for non-recursive tree when dirs are deleted ( #3 )
2021-03-08 13:15:56 +01:00
Simon Frei
1a62061136
Change indexbase to indexrel
2021-02-11 23:52:56 +01:00
Simon Frei
7c1f491a82
Remove deleted dirs in nonrec-tree and fix node.Del bugs ( fixes #200 )
2021-02-09 22:13:15 +01:00
Simon Frei
c1604fdc02
Don't add same node again
2021-02-09 22:13:14 +01:00
Simon Frei
d8c12ba62f
Update go.mod
2021-02-09 22:13:12 +01:00
Staffan Olsson
24d15394af
Adds another project that uses notify: Go Watch
2020-12-30 16:53:25 +01:00
Simon Frei
17de26665d
Merge remote-tracking branch 'upstream/master' into main
2020-12-10 11:01:35 +01:00
Rafal Jeczalik
e2a77dcc14
Merge pull request #198 from rjeczalik/issue-197
...
readdcw: do not panic on invalid/zero actions
2020-12-10 02:25:15 +01:00
Pawel Knap
80351c6528
readdcw: do not panic on invalid/zero actions
2020-12-01 20:07:12 -05:00
Pawel Knap
9c77608b11
Merge pull request #194 from syncthing/readdcw/panicaction
...
readdcw: Add action to panic msg
2020-12-01 19:59:32 -05:00
Rafal Jeczalik
090537d3a3
Merge pull request #193 from syncthing/kqueue-dangling
...
kqueue: Ignore errors due to dangling symlinks
2020-12-01 23:14:44 +01:00
Rafal Jeczalik
60478d588c
Merge pull request #195 from syncthing/inotify/fixrename
...
inotify: Fix path when renaming dir in recursive watch
2020-12-01 20:15:42 +01:00
Simon Frei
761a0d4dc6
inotify: Fix path when renaming dir in recursive watch
2020-11-10 00:03:15 +01:00
Simon Frei
9a0e441811
kqueue: Ignore errors due to dangling symlinks
2020-11-09 10:17:51 +01:00
Simon Frei
c660574179
readdcw: Add action to panic msg
2020-11-09 10:17:45 +01:00
Simon Frei
22d861c55b
readdcw: Add action to panic msg
2020-11-04 10:29:38 +01:00
Simon Frei
9b78ebf115
kqueue: Ignore errors due to dangling symlinks
2020-11-02 17:12:50 +01:00
Rafal Jeczalik
c24c8ac3bb
Merge pull request #176 from CodeLingoBot/rewrite
...
Fix function comments based on best practices from Effective Go
2020-11-01 16:02:13 +01:00
Rafal Jeczalik
d7c3192c4f
Merge pull request #188 from Toasterson/master
...
Add illumos build tags in the right places
2020-11-01 16:01:05 +01:00
Till Wegmueller
4a17ce647b
Add illumos build tags in the right places
2020-11-01 14:29:23 +00:00
Simon Frei
a28a0bd0f5
Merge remote-tracking branch 'upstream/master' into main
2020-11-01 13:04:44 +01:00
Rafal Jeczalik
a684240574
Merge pull request #182 from tie/fix-darwin-noncgo
...
Fix Darwin build without Cgo
2020-11-01 04:38:40 +01:00
Rafal Jeczalik
0e263a8170
Merge pull request #185 from AkaZecik/patch-1
...
Fix a typo
2020-11-01 04:37:18 +01:00
Rafal Jeczalik
c6cac5520a
Merge pull request #192 from rjeczalik/issue-191
...
readdcw: debug and skip nil extended completion statuses (fixes #191 )
2020-11-01 03:42:39 +01:00
Pawel Knap
b181ffafa4
readdcw: debug and skip nil extended completion statuses ( fixes #191 )
2020-10-31 20:26:12 -04:00
Artur Zubilewicz
2e90e5ea66
Fix a typo
...
I believe it should be _Calling Watch with empty event list does **not** expand nor shrink watchpoint's event set_.
2020-01-05 19:57:02 +01:00
Ivan Trubach
9a8f8ad026
Fallback to kqueue on darwin without cgo
2019-08-15 14:05:55 +03:00
Simon Frei
69c7a957d3
Merge remote-tracking branch 'rjeczalik/master'
2019-07-09 16:01:12 +02:00
CodeLingo Bot
0bf3b9bad2
Fix function comments based on best practices from Effective Go
...
Signed-off-by: CodeLingo Bot <bot@codelingo.io >
2019-02-18 22:06:10 +00:00
matarc
d4e5e93784
Forward FSEventsUserDropped, FSEventsKernelDropped, FSEventsMustScanSubDirs
2019-02-14 08:51:26 +00:00
Pawel Knap
629144ba06
Merge pull request #168 from FabianKramm/master
...
readdcw: Call readdirchangesw if GetQueuedCompletionStatus retrieves zero bytes (Fixes #167 )
2018-11-26 19:32:43 +01:00
Fabian Kramm
8c84b4393e
Readdirchanges if lpNumberOfBytes is zero
2018-11-26 16:32:28 +01:00