To hack on fsnotify:
go get -u github.com/howeyc/fsnotify
)git checkout -b my-new-feature
)git commit -am 'Add some feature'
)Contribute upstream:
git remote add fork git@github.com:mycompany/repo.git
)git push fork my-new-feature
)For other team members:
go get -u github.com/howeyc/fsnotify
)git remote add fork git@github.com:mycompany/repo.git
)git fetch fork; git checkout -b my-new-feature fork/my-new-feature
)Notice: Always use the original import path by installing with go get
.
fsnotify uses build tags to compile different code on Linux, BSD, OS X, and Windows. Our continuous integration server is only able to test on Linux at this time.
Before doing a pull request, please do your best to test your changes on multiple platforms, and list which platforms you were able/unable to test on.
To make cross-platform testing easier, we've created a Vagrantfile for Linux and BSD.
src
folder.vagrant up
from the project folder. You can also setup just one box with vagrant up linux
or vagrant up bsd
(note: the BSD box doesn't support Windows hosts at this time, and NFS may prompt for your host OS password)vagrant ssh linux -c 'cd howeyc/fsnotify; go test ./...'
.Notice: fsnotify file system events won't work on shared folders. The tests get around this limitation by using a tmp directory, but it is something to be aware of when logging in with vagrant ssh linux
to do some manual testing.
Right now we don't have an equivalent solution for Windows and OS X, but there are Windows VMs freely available from Microsoft.