Skip to content
This repository has been archived by the owner on Jan 24, 2019. It is now read-only.

Fix unsupported WatchForUpdates and build tags #106

Merged
merged 1 commit into from
May 31, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions validator_watcher_copy_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// +build go1.3
// +build !plan9,!solaris,!windows
// +build go1.3,!plan9,!solaris,!windows

// Turns out you can't copy over an existing file on Windows.

Expand Down
3 changes: 1 addition & 2 deletions validator_watcher_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// +build go1.3
// +build !plan9,!solaris
// +build go1.3,!plan9,!solaris

package main

Expand Down
3 changes: 1 addition & 2 deletions watcher.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// +build go1.3
// +build !plan9,!solaris
// +build go1.3,!plan9,!solaris

package main

Expand Down
5 changes: 2 additions & 3 deletions watcher_unsupported.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
// +build go1.1
// +build plan9,solaris
// +build !go1.3 plan9 solaris

package main

import (
"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")
return false
}