Comments (3)
The source of the error is:
https://code.google.com/p/go/codesearch#go/src/pkg/os/dir_unix.go line 41
from tail.
After running the test once
go test
There is a directory .test
with the following content:
ll (find .test -type f)
-rw------- 1 rickard staff 22B Jul 30 23:24 .test/location-full-dontfollow/test.txt
-rw------- 1 rickard staff 10B Jul 30 23:24 .test/reopen-inotify/test.txt.rotated
-rw------- 1 rickard staff 10B Jul 30 23:24 .test/reopen-polling/test.txt.rotated
This is the same on both OS X and Linux.
But running go test
fails on OS X but not on Linux.
panic: readdirent: invalid argument
goroutine 16 [running]:
runtime.panic(0x13d1c0, 0x2082d61e0)
/opt/boxen/homebrew/Cellar/go/1.3/libexec/src/pkg/runtime/panic.c:279 +0xf5
github.com/ActiveState/tail.init·1()
/Users/rickard/src/go-code/src/github.com/ActiveState/tail/tail_test.go:23 +0x74
github.com/ActiveState/tail.init()
/Users/rickard/src/go-code/src/github.com/ActiveState/tail/tail_test.go:428 +0x17f
main.init()
github.com/ActiveState/tail/_test/_testmain.go:76 +0x46
But after this the .test
directory is gone and next run succeeds.
from tail.
It seems that this is a Go + OS X 10.10 issue #8423.
from tail.
Related Issues (20)
- Hello, I want to receive a notification when deleting a file or directory. What should I do HOT 1
- Export EOF detection HOT 2
- Doesn't compile for Dragonfly or Illumos HOT 3
- waiting for file to appear doesn't appear if file isn't closed
- Accurate 'offset'
- fsnotify has moved away from gopkg.in HOT 1
- Support Go modules HOT 1
- Does this library support tailling multiple files?
- Can't tail multiple file
- tail.Config ReOpen abnormal HOT 1
- error: reference to undefined identifier 'syscall.SizeofInotifyEvent' (gollvm; 1.15.2)
- cannot find module providing package gopkg.in/fsnotify.v1 HOT 1
- how to close tails goroutine HOT 1
- fsnotify doesn't work with Windows, polling does HOT 2
- Can solve the problem of file scrolling in Linux?
- The word "continuously" is spelt wrong in the GitHub description
- tail will stop when deal with rotate log HOT 1
- Tail divided/multiple logfiles
- PRs welcome at tenebris-tech/tail
- Failed to create watcher error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tail.