|
|
пре 5 година | |
|---|---|---|
| .dependabot | пре 5 година | |
| .github | пре 5 година | |
| azure | пре 5 година | |
| backend | пре 5 година | |
| cli | пре 5 година | |
| client | пре 5 година | |
| compose | пре 5 година | |
| config | пре 5 година | |
| containers | пре 5 година | |
| context | пре 5 година | |
| docs | пре 5 година | |
| errdefs | пре 5 година | |
| example | пре 5 година | |
| formatter | пре 5 година | |
| local | пре 5 година | |
| multierror | пре 5 година | |
| progress | пре 5 година | |
| protos | пре 5 година | |
| server | пре 5 година | |
| tests | пре 5 година | |
| .dockerignore | пре 5 година | |
| .gitattributes | пре 5 година | |
| .gitignore | пре 5 година | |
| .golangci.yml | пре 5 година | |
| CHANGELOG.md | пре 5 година | |
| Dockerfile | пре 5 година | |
| Makefile | пре 5 година | |
| README.md | пре 5 година | |
| builder.Makefile | пре 5 година | |
| go.mod | пре 5 година | |
| go.sum | пре 5 година |
The recommended way is to use the main Makefile that runs everything inside a container.
If you don't have or want to use Docker for building you need to make sure you have all the needed tools installed locally:
go get github.com/golang/protobuf/[email protected]go get golang.org/x/tools/cmd/goimportsgo get github.com/golangci/golangci-lint/cmd/[email protected]And then you can call the same make targets but you need to pass it the builder.Makefile (make -f builder.Makefile).
The new CLI delegates to the classic docker for default contexts ; delegation is done to com.docker.cli.
make moby-cli-link will create a com.docker.cli link in /usr/local/bin if you don't already have it from Docker Desktop$ make
This will make the cli with all backends enabled. make cross on the other hand will cross-compile the cli without the
example and local backend. We use make cross to build for our release, hence the exclusion of those backends. You can
still cross-compile with all backends enabled: BUILD_TAGS=example,local make cross.
If you make changes to the .proto files, make sure to make protos to generate go code.
To run unit tests:
make test
If you need to update a golden file simply do go test ./... -test.update-golden.