Merge pull request #106 from 18F/fix-watcher-build-tags
Fix unsupported WatchForUpdates and build tags
commit577a3f7f0982285a8a19b6f8582bdcc8ec02e45f
authorJehiah Czebotar <jehiah@gmail.com>
dateSat 30 May 2015, 20:05 (11 years ago)
parentc69468921f2655
validator_watcher_copy_test.go+1−2
@@ -1,5 +1,4 @@
1−// +build go1.3
2−// +build !plan9,!solaris,!windows
1+// +build go1.3,!plan9,!solaris,!windows
32
43// Turns out you can't copy over an existing file on Windows.
54
validator_watcher_test.go+1−2
@@ -1,5 +1,4 @@
1−// +build go1.3
2−// +build !plan9,!solaris
1+// +build go1.3,!plan9,!solaris
32
43package main
54
watcher.go+1−2
@@ -1,5 +1,4 @@
1−// +build go1.3
2−// +build !plan9,!solaris
1+// +build go1.3,!plan9,!solaris
32
43package main
54
watcher_unsupported.go+2−3
@@ -1,5 +1,4 @@
1−// +build go1.1
2−// +build plan9,solaris
1+// +build !go1.3 plan9 solaris
32
43package main
54
@@ -7,7 +6,7 @@ import (
76 "log"
87)
98
10−func WatchForUpdates(filename string, action func()) bool {
9+func WatchForUpdates(filename string, done <-chan bool, action func()) bool {
1110 log.Printf("file watching not implemented on this platform")
1211 return false
1312}