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

validator.go:24: undefined: WatchForUpdates #105

Closed
dbiswas1 opened this issue May 30, 2015 · 3 comments · Fixed by #106
Closed

validator.go:24: undefined: WatchForUpdates #105

dbiswas1 opened this issue May 30, 2015 · 3 comments · Fixed by #106

Comments

@dbiswas1
Copy link

Hi i am new using Go, i want to setup enable oauth in Nginx when i follow instruction i get following error
go get github.com/bitly/oauth2_proxy

github.com/bitly/oauth2_proxy

../bitly/oauth2_proxy/validator.go:24: undefined: WatchForUpdates

Please help me

mbland pushed a commit to cloud-gov/oauth2_proxy that referenced this issue May 30, 2015
Closes bitly#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.
@mbland
Copy link
Contributor

mbland commented May 30, 2015

Sorry, that was my fault. Either you're running Plan 9 or Solaris, or using a version of Go before 1.3. You can check your version of Go by running go version. Whatever the case, #106 should fix it. You can try to pull the branch for #106 and see if it fixes the problem by running:

$ cd $GOPATH/src/github.com/bitly/oauth2_proxy
$ git remote add 18f https://github.com/18F/oauth2_proxy
$ git fetch 18f fix-watcher-build-tags
$ git checkout fix-watcher-build-tags
$ ./test.sh
$ go build

@mbland
Copy link
Contributor

mbland commented May 31, 2015

OK @dbiswas1, you should be able now to run go get github.com/bitly/oauth2_proxy without problem. Let me know if it still doesn't work for you.

@dbiswas1
Copy link
Author

Thanks a lot it fixed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants