cmd
cmd copied to clipboard
Command line tools for Revel.
Changed the default validation keys to be keyed by the first line line number of the "code" instead of the last. This is because the validation.go in revel expects it...
Hello The field level error messages are not working when the "validation checks" span multiple lines in the validate code. This is because the run.go (which holds the revel.DefaultValidationKeys) is...
This resolves the issue when `go mod vendor` is run in the project folder.
However, revel run dev will only work if we are in parent dir of [proj]. i.e. if I have dir structure /go/src/[proj], I can run revel run [proj] dev when...
I think I've seen people request this several times. Here's some scattered info: - https://github.com/revel/revel/issues/845 - https://github.com/revel/cli/issues/1 - https://github.com/notzippy/FrameworkBenchmarks/tree/master/frameworks/Go/revel - https://github.com/revel/revel/wiki/Roadmap - https://jbeckwith.com/2015/05/08/docker-revel-appengine/
When Harness responds with a compilation error, it generates the page with 200 OK. https://github.com/revel/cmd/blob/master/harness/harness.go#L137 ```go atomic.CompareAndSwapInt32(&lastRequestHadError, 0, 1) h.renderError(w, r, err) return ``` It would probably be best to...
If an assert fails in a test subcommand, it's not safe for automatic builds or deployments because the command can't tell if it's a success or a failure. I would...
go mod with dependency like golang.org/x/unix [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x11d225d] goroutine 59 [running]: go/ast.Walk(0x16aca80, 0xc010629260, 0x16afa60, 0x0) /Users/han/.gvm/gos/go1.13.5/src/go/ast/walk.go:224 +0x1b4d go/ast.Inspect(...) /Users/han/.gvm/gos/go1.13.5/src/go/ast/walk.go:385 github.com/revel/cmd/parser2.(*SourceInfoProcessor).getValidation(0xc000010040, 0xc0172e4ff0, 0xc013db7000, 0xc014a0c940) /workspace/revel_cmd/parser2/source_info_processor.go:114 +0x15f
system: ```Windows 10``` go version ```go version go1.13.3 windows/amd64``` go env: ``` set GO111MODULE=on set GOARCH=amd64 set GOBIN= set GOCACHE=C:\Users\qinya\AppData\Local\go-build set GOENV=C:\Users\qinya\AppData\Roaming\go\env set GOEXE=.exe set GOFLAGS= set GOHOSTARCH=amd64 set GOHOSTOS=windows...