dependency problem with fsnotify?
bristol-d opened this issue · 2 comments
bristol-d commented
simplehttpserver version:
latest as of 12/09/2023
Current Behavior:
On windows/amd64, trying to install as per README does not work. However, compiling from trunk does.
Expected Behavior:
Package installs successfully and simplehttpserver.exe becomes available.
Steps To Reproduce:
> go version
go version go1.21.1 windows/amd64
> go install -v github.com/projectdiscovery/simplehttpserver/cmd/simplehttpserver@latest
github.com/projectdiscovery/simplehttpserver/internal/runner
# github.com/projectdiscovery/simplehttpserver/internal/runner
..\..\..\go\pkg\mod\github.com\projectdiscovery\simplehttpserver@v0.0.6\internal\runner\watchdog.go:19:32: watcher.Events undefined (type *fsnotify.Watcher has no field or method Events)
..\..\..\go\pkg\mod\github.com\projectdiscovery\simplehttpserver@v0.0.6\internal\runner\watchdog.go:28:19: watcher.Errors undefined (type *fsnotify.Watcher has no field or method Errors)
>
After this, where simplehttpserver.exe cannot find the file.
However, cloning the repo and go build does work, and produces the exe - which runs fine.
Anything else:
MetzinAround commented
Thanks for the issue! We'll be taking a look soon.