diff options
| author | 2022-11-08 11:30:29 +0100 | |
|---|---|---|
| committer | 2022-11-08 11:30:29 +0100 | |
| commit | be011b164168ae5c1ae7b8a0c11c392187701766 (patch) | |
| tree | 4ea275ab207ec4724a71f2c327034065589a5402 /vendor/github.com/spf13/viper/watch_unsupported.go | |
| parent | [chore]: Bump github.com/stretchr/testify from 1.8.0 to 1.8.1 (#1002) (diff) | |
| download | gotosocial-be011b164168ae5c1ae7b8a0c11c392187701766.tar.xz | |
[chore]: Bump github.com/spf13/viper from 1.13.0 to 1.14.0 (#1003)
Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.13.0 to 1.14.0.
- [Release notes](https://github.com/spf13/viper/releases)
- [Commits](https://github.com/spf13/viper/compare/v1.13.0...v1.14.0)
---
updated-dependencies:
- dependency-name: github.com/spf13/viper
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Diffstat (limited to 'vendor/github.com/spf13/viper/watch_unsupported.go')
| -rw-r--r-- | vendor/github.com/spf13/viper/watch_unsupported.go | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/vendor/github.com/spf13/viper/watch_unsupported.go b/vendor/github.com/spf13/viper/watch_unsupported.go new file mode 100644 index 000000000..7e2715377 --- /dev/null +++ b/vendor/github.com/spf13/viper/watch_unsupported.go @@ -0,0 +1,32 @@ +//go:build appengine || (!darwin && !dragonfly && !freebsd && !openbsd && !linux && !netbsd && !solaris && !windows) +// +build appengine !darwin,!dragonfly,!freebsd,!openbsd,!linux,!netbsd,!solaris,!windows + +package viper + +import ( + "fmt" + "runtime" + + "github.com/fsnotify/fsnotify" +) + +func newWatcher() (*watcher, error) { + return &watcher{}, fmt.Errorf("fsnotify not supported on %s", runtime.GOOS) +} + +type watcher struct { + Events chan fsnotify.Event + Errors chan error +} + +func (*watcher) Close() error { + return nil +} + +func (*watcher) Add(name string) error { + return nil +} + +func (*watcher) Remove(name string) error { + return nil +} |
