moby/hack/make
Yong Tang fac486d0a0 Fix build error for make test-unit
This fix tries to address the issue raised by #33856 where
`make test-unit` will result in the failure:
```
...
...
dockerversion/useragent.go:20: undefined: Version
dockerversion/useragent.go:22: undefined: GitCommit
ok  	github.com/docker/docker/api	0.026s	coverage: 68.0% of statements
ok  	github.com/docker/docker/api/errors	0.003s	coverage: 100.0% of statements
FAIL	github.com/docker/docker/api/server [build failed]
make: *** [test-unit] Error 2
```

The issue is because in case of `make test-unit`, `source "${MAKEDIR}/.go-autogen"`
is missing.

This caused the `make test-unit` failure.

This fix adds `source "${MAKEDIR}/.go-autogen"` in `hack/make/test-unit`

This fix fixes #33856.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2017-06-28 03:18:55 +00:00
..
.build-deb Remove cmd/docker and other directories in cli/ in accordance with the new Moby project scope 2017-05-05 12:14:29 -07:00
.build-rpm Merge pull request #32437 from cpuguy83/container_selinux 2017-05-12 09:23:17 -04:00
.resources-windows Windows: Support running dockerd as a service 2016-04-26 14:04:47 -07:00
.binary remove cli concerns from hack/make 2017-06-21 11:20:05 -04:00
.binary-setup Remove pkcs11, libltdl-dev, and clang for osx. 2017-06-21 11:18:44 -04:00
.detect-daemon-osarch do not show errors on make install 2017-04-04 15:19:50 +02:00
.ensure-emptyfs Convert script shebangs from "#!/bin/bash" to "#!/usr/bin/env bash" 2017-02-13 11:01:54 -08:00
.go-autogen Convert script shebangs from "#!/bin/bash" to "#!/usr/bin/env bash" 2017-02-13 11:01:54 -08:00
.go-autogen.ps1 Switch to new versioning scheme 2017-02-15 23:22:50 -08:00
.integration-daemon-setup Remove cmd/docker and other directories in cli/ in accordance with the new Moby project scope 2017-05-05 12:14:29 -07:00
.integration-daemon-start Bump API version 2017-06-09 14:58:01 +02:00
.integration-daemon-stop Convert script shebangs from "#!/bin/bash" to "#!/usr/bin/env bash" 2017-02-13 11:01:54 -08:00
.integration-test-helpers Use actual cli version for TestConfigHTTPHeader 2017-06-01 09:35:30 -07:00
binary Remove cmd/docker and other directories in cli/ in accordance with the new Moby project scope 2017-05-05 12:14:29 -07:00
binary-daemon remove cli concerns from hack/make 2017-06-21 11:20:05 -04:00
build-deb Convert script shebangs from "#!/bin/bash" to "#!/usr/bin/env bash" 2017-02-13 11:01:54 -08:00
build-integration-test-binary Fix autogen vars 2017-06-23 14:40:09 -05:00
build-rpm Rely on container-selinux for centos/fedora25/rhel 2017-05-01 11:23:18 -04:00
clean-apt-repo Convert script shebangs from "#!/bin/bash" to "#!/usr/bin/env bash" 2017-02-13 11:01:54 -08:00
clean-yum-repo Convert script shebangs from "#!/bin/bash" to "#!/usr/bin/env bash" 2017-02-13 11:01:54 -08:00
cover Convert script shebangs from "#!/bin/bash" to "#!/usr/bin/env bash" 2017-02-13 11:01:54 -08:00
cross remove cli concerns from hack/make 2017-06-21 11:20:05 -04:00
dynbinary Remove cmd/docker and other directories in cli/ in accordance with the new Moby project scope 2017-05-05 12:14:29 -07:00
dynbinary-daemon remove cli concerns from hack/make 2017-06-21 11:20:05 -04:00
generate-index-listing Convert script shebangs from "#!/bin/bash" to "#!/usr/bin/env bash" 2017-02-13 11:01:54 -08:00
install-binary hack: Remove install-binary-client 2017-05-08 10:50:31 -07:00
install-binary-daemon Convert script shebangs from "#!/bin/bash" to "#!/usr/bin/env bash" 2017-02-13 11:01:54 -08:00
install-script Convert script shebangs from "#!/bin/bash" to "#!/usr/bin/env bash" 2017-02-13 11:01:54 -08:00
README.md Move scripts back to hack/, leave docs in project/ 2015-03-13 14:04:08 -06:00
release-deb Convert script shebangs from "#!/bin/bash" to "#!/usr/bin/env bash" 2017-02-13 11:01:54 -08:00
release-rpm Convert script shebangs from "#!/bin/bash" to "#!/usr/bin/env bash" 2017-02-13 11:01:54 -08:00
run Convert script shebangs from "#!/bin/bash" to "#!/usr/bin/env bash" 2017-02-13 11:01:54 -08:00
sign-repos Convert script shebangs from "#!/bin/bash" to "#!/usr/bin/env bash" 2017-02-13 11:01:54 -08:00
test-deb-install Convert script shebangs from "#!/bin/bash" to "#!/usr/bin/env bash" 2017-02-13 11:01:54 -08:00
test-docker-py Convert script shebangs from "#!/bin/bash" to "#!/usr/bin/env bash" 2017-02-13 11:01:54 -08:00
test-install-script Convert script shebangs from "#!/bin/bash" to "#!/usr/bin/env bash" 2017-02-13 11:01:54 -08:00
test-integration-cli Convert script shebangs from "#!/bin/bash" to "#!/usr/bin/env bash" 2017-02-13 11:01:54 -08:00
test-integration-shell Convert script shebangs from "#!/bin/bash" to "#!/usr/bin/env bash" 2017-02-13 11:01:54 -08:00
test-old-apt-repo Convert script shebangs from "#!/bin/bash" to "#!/usr/bin/env bash" 2017-02-13 11:01:54 -08:00
test-unit Fix build error for make test-unit 2017-06-28 03:18:55 +00:00
tgz Remove cmd/docker and other directories in cli/ in accordance with the new Moby project scope 2017-05-05 12:14:29 -07:00
ubuntu Convert script shebangs from "#!/bin/bash" to "#!/usr/bin/env bash" 2017-02-13 11:01:54 -08:00
update-apt-repo Convert script shebangs from "#!/bin/bash" to "#!/usr/bin/env bash" 2017-02-13 11:01:54 -08:00
win Convert script shebangs from "#!/bin/bash" to "#!/usr/bin/env bash" 2017-02-13 11:01:54 -08:00

This directory holds scripts called by make.sh in the parent directory.

Each script is named after the bundle it creates. They should not be called directly - instead, pass it as argument to make.sh, for example:

./hack/make.sh test
./hack/make.sh binary ubuntu

# Or to run all bundles:
./hack/make.sh

To add a bundle:

  • Create a shell-compatible file here
  • Add it to $DEFAULT_BUNDLES in make.sh