GithubHelp home page GithubHelp logo

Comments (3)

rickard-von-essen avatar rickard-von-essen commented on July 21, 2024

The source of the error is:
https://code.google.com/p/go/codesearch#go/src/pkg/os/dir_unix.go line 41

from tail.

rickard-von-essen avatar rickard-von-essen commented on July 21, 2024

After running the test once
go test
There is a directory .testwith 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.

rickard-von-essen avatar rickard-von-essen commented on July 21, 2024

It seems that this is a Go + OS X 10.10 issue #8423.

from tail.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.