anchor.diff:  	&& git clone https://github.com/docker/distribution.git "$GOPATH/src/github.com/docker/distribution" \
   	&& (cd "$GOPATH/src/github.com/docker/distribution" && git checkout -q "$REGISTRY_COMMIT") \
   	&& GOPATH="$GOPATH/src/github.com/docker/distribution/Godeps/_workspace:$GOPATH" \
  -		go build -buildmode=pie -o /usr/local/bin/registry-v2 github.com/docker/distribution/cmd/registry \
  +		go build -buildmode=pie -o /build/registry-v2 github.com/docker/distribution/cmd/registry \
   	&& case $(dpkg --print-architecture) in \
   		amd64|ppc64*|s390x) \
   		(cd "$GOPATH/src/github.com/docker/distribution" && git checkout -q "$REGISTRY_COMMIT_SCHEMA1"); \
   		GOPATH="$GOPATH/src/github.com/docker/distribution/Godeps/_workspace:$GOPATH"; \
  -			go build -buildmode=pie -o /usr/local/bin/registry-v2-schema1 github.com/docker/distribution/cmd/registry; \
  +			go build -buildmode=pie -o /build/registry-v2-schema1 github.com/docker/distribution/cmd/registry; \
   		;; \
   	   esac \
   	&& rm -rf "$GOPATH"
  
positive.code: 	&& curl -sSL https://github.com/checkpoint-restore/criu/archive/v${CRIU_VERSION}.tar.gz | tar -C /usr/src/criu/ -xz --strip-components=1 \
  	&& cd /usr/src/criu \
  	&& make \
  	&& make PREFIX=/opt/criu install-criu
  
  FROM base AS registry
  # Install two versions of the registry. The first is an older version that
  
negative.code: 	&& export GOPATH="$(mktemp -d)" \
  	&& git clone https://github.com/go-swagger/go-swagger.git "$GOPATH/src/github.com/go-swagger/go-swagger" \
  	&& (cd "$GOPATH/src/github.com/go-swagger/go-swagger" && git checkout -q "$GO_SWAGGER_COMMIT") \
  	&& go build -o /build/swagger github.com/go-swagger/go-swagger/cmd/swagger \
  	&& rm -rf "$GOPATH"
  
  
  