-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Try CGO_ENABLED=0 * Disable CGO and use stubbed fsnotify * Another mock dep
- Loading branch information
Showing
8 changed files
with
69 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ before: | |
- go mod download | ||
builds: | ||
- env: | ||
- CGO_ENABLED=1 | ||
- CGO_ENABLED=0 | ||
goos: | ||
- darwin | ||
- windows | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module github.com/fsnotify/fsnotify | ||
|
||
go 1.19 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package fsnotify | ||
|
||
type Op uint32 | ||
|
||
type Event struct { | ||
Name string | ||
Op Op | ||
} | ||
|
||
const ( | ||
Create Op = 1 << iota | ||
Write | ||
Remove | ||
Rename | ||
Chmod | ||
) | ||
|
||
type Watcher struct { | ||
Events chan Event | ||
Errors chan error | ||
} | ||
|
||
func (Watcher) Add(string) { | ||
panic("fsnotify is not supported") | ||
} | ||
|
||
func (Watcher) Close() { | ||
panic("fsnotify is not supported") | ||
} | ||
|
||
func NewWatcher() (*Watcher, error) { | ||
panic("fsnotify is not supported") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module github.com/rjeczalik/notify | ||
|
||
go 1.19 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package notify | ||
|
||
type Event uint32 | ||
|
||
type EventInfo interface { | ||
Event() Event | ||
Path() string | ||
Sys() interface{} | ||
} | ||
|
||
func Stop(c chan<- EventInfo) { | ||
panic("notify is not supported") | ||
} | ||
|
||
const All = 0 | ||
|
||
func Watch(path string, c chan<- EventInfo, events ...Event) error { | ||
panic("notify is not supported") | ||
} |