"error : cannot find package "github.com/weavework/scope/prog/externalui"
when i execute " go run *.go "(location in GOPATH/src/github.com/weavework/scope/prog/),GoLand alerts “cannot find "github.com/weavework/scope/prog/externalui" & “cannot find "github.com/weavework/scope/prog/staticui". But this path i cannot find the folder named "externalui" or "staticui". I also check other release,also no。 So i delete some related code,and execute "go build *.go",and execute ./app then:
[root@localhost prog]# ./app -app.basicAuth -app.basicAuth.password hard -app.basicAuth.username user -probe.basicAuth -probe.basicAuth.password hard -probe.basicAuth.username user --mode=app --weave=false
alert no error,but access ip:4040 404.
This problem has been puzzling me for a long time.
Thanks!
ps: the code i deleted:
delete app.go some code: //uiHandler := http.FileServer(GetFS(externalUI)) //router.PathPrefix("/ui").Name("static").Handler( //middleware.PathRewrite(regexp.MustCompile("^/ui"), "").Wrap( //uiHandler)) //router.PathPrefix("/").Name("static").Handler(uiHandler)
delete:static.go、main_test.go
Those files are generated as part of the build process. Run make in the scopedirectory.
Those files are generated as part of the build process. Run
makein thescopedirectory.
You suggestions has given me a lot of help. After run make in the scope directory,the project generates a scope.tar automaticly. Thank you!
Seems problem is solved! Closing this.