scope icon indicating copy to clipboard operation
scope copied to clipboard

"error : cannot find package "github.com/weavework/scope/prog/externalui"

Open dengceltics opened this issue 7 years ago • 3 comments

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 INFO: 2018/12/12 18:13:51.931797 app starting, version dev, ID 3b6cc938d0a242df INFO: 2018/12/12 18:13:51.931923 command line args: --app.basicAuth=true --app.basicAuth.password=hard --app.basicAuth.username=user --mode=app --probe.basicAuth=true --probe.basicAuth.password=hard --probe.basicAuth.username=user --weave=false INFO: 2018/12/12 18:13:51.941281 Basic authentication enabled INFO: 2018/12/12 18:13:51.941373 listening on :4040

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

dengceltics avatar Dec 12 '18 12:12 dengceltics

Those files are generated as part of the build process. Run make in the scopedirectory.

bboreham avatar Dec 12 '18 13:12 bboreham

Those files are generated as part of the build process. Run make in the scopedirectory.

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!

dengceltics avatar Dec 14 '18 03:12 dengceltics

Seems problem is solved! Closing this.

satyamz avatar Dec 19 '18 04:12 satyamz