Fix unsupported WatchForUpdates and build tags
Closes #105. The `go1.1` constraint has been updated to `!go1.3` per https://golang.org/pkg/go/build/#hdr-Build_Constraints and https://github.com/go-fsnotify/fsnotify. Also, the existing call signature for `WatchForUpdates()` in `watcher_unsupported.go` was stale.
This commit is contained in:
parent
c6946893e0
commit
21f2655280
@ -1,5 +1,4 @@
|
|||||||
// +build go1.3
|
// +build go1.3,!plan9,!solaris,!windows
|
||||||
// +build !plan9,!solaris,!windows
|
|
||||||
|
|
||||||
// Turns out you can't copy over an existing file on Windows.
|
// Turns out you can't copy over an existing file on Windows.
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
// +build go1.3
|
// +build go1.3,!plan9,!solaris
|
||||||
// +build !plan9,!solaris
|
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
// +build go1.3
|
// +build go1.3,!plan9,!solaris
|
||||||
// +build !plan9,!solaris
|
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
// +build go1.1
|
// +build !go1.3 plan9 solaris
|
||||||
// +build plan9,solaris
|
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
@ -7,7 +6,7 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
)
|
)
|
||||||
|
|
||||||
func WatchForUpdates(filename string, action func()) bool {
|
func WatchForUpdates(filename string, done <-chan bool, action func()) bool {
|
||||||
log.Printf("file watching not implemented on this platform")
|
log.Printf("file watching not implemented on this platform")
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user