You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, copy code of this repo to vendor sub-direcotory in your local project, and change gopkg.in/fsnotify to github.com/fsnotify/fsnotify in watch/inotify.go and watch/inotify_tracker.go
Second, if you use go mod , you can use it directly:
Go version: go1.15.3 linux/amd64
env variable set as GOPROXY="https://goproxy.cn,direct"
mkdir -p $GOPATH/github.com/wuxler/sample
cd $GOPATH/github.com/wuxler/sample
vim main.go
go mod init
go mod download
go build -o sample main.go
Activity
wuxler commentedon Nov 19, 2020
It's because package
gopkg.in/fsnotifyhas been renamed asgithub.com/fsnotify/fsnotify.There's two ways i supply to fix this problem.
First, copy code of this repo to
vendorsub-direcotory in your local project, and changegopkg.in/fsnotifytogithub.com/fsnotify/fsnotifyinwatch/inotify.goandwatch/inotify_tracker.goSecond, if you use
go mod, you can use it directly:GOPROXY="https://goproxy.cn,direct"