Skip to content

Latest commit

 

History

History
51 lines (37 loc) · 1.54 KB

DEVELOPMENT.md

File metadata and controls

51 lines (37 loc) · 1.54 KB

BUILDTIME REQUIREMENTS

  • Go 1.11+

Recommended

  • Docker
  • Mage (e.g., go get github.com/magefile/mage)
  • goimports (e.g. go get golang.org/x/tools/cmd/goimports)
  • golint (e.g. go get github.com/golang/lint/golint)
  • errcheck (e.g. go get github.com/kisielk/errcheck)
  • nakedret (e.g. go get github.com/alexkohler/nakedret)
  • shadow (e.g. go get -u golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow)
  • goxcart (e.g., go get github.com/mcandre/goxcart/...)
  • zipc (e.g. go get github.com/mcandre/zipc/...)

INSTALL FROM REMOTE GIT REPOSITORY

$ go get github.com/mcandre/prql/...

(Yes, include the ellipsis as well, it's the magic Go syntax for downloading, building, and installing all components of a package, including any libraries and command line tools.)

INSTALL FROM LOCAL GIT REPOSITORY

$ mkdir -p "$GOPATH/src/github.com/mcandre"
$ git clone https://github.com/mcandre/prql.git "$GOPATH/src/github.com/mcandre/prql"
$ cd "$GOPATH/src/github.com/mcandre/prql"
$ git submodule update --init
$ go install ./...

UNINSTALL

$ mage uninstall

LINT

$ mage lint

PORT

$ mage port