anchor.diff:  COPY hack/dockerfile/install/install.sh ./install.sh
   COPY hack/dockerfile/install/$INSTALL_BINARY_NAME.installer ./
   RUN --mount=type=cache,target=/root/.cache/go-build \
  -	--mount=type=cache,target=/go/pkg/mod \
  -		PREFIX=/build ./install.sh $INSTALL_BINARY_NAME
  +    --mount=type=cache,target=/go/pkg/mod \
  +        PREFIX=/build ./install.sh $INSTALL_BINARY_NAME
   
   FROM base AS gotestsum
   ENV INSTALL_BINARY_NAME=gotestsum
  
positive.code: ENV REGISTRY_COMMIT_SCHEMA1 ec87e9b6971d831f0eff752ddb54fb64693e51cd
  ENV REGISTRY_COMMIT 47a064d4195a9b56133891bbb13620c3ac83a827
  RUN --mount=type=cache,target=/root/.cache/go-build \
  	--mount=type=cache,target=/go/pkg/mod \
  		set -x \
  		&& export GOPATH="$(mktemp -d)" \
  		&& 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 /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 /build/registry-v2-schema1 github.com/docker/distribution/cmd/registry; \
  			;; \
  			 esac \
  		&& rm -rf "$GOPATH"
  
  FROM base AS swagger
  # Install go-swagger for validating swagger.yaml
  
negative.code: # TODO: move to under moby/ or fix upstream go-swagger to work for us.
  ENV GO_SWAGGER_COMMIT 5793aa66d4b4112c2602c716516e24710e4adbb5
  RUN --mount=type=cache,target=/root/.cache/go-build \
      --mount=type=cache,target=/go/pkg/mod \
          set -x \
          && export GOPATH="$(mktemp -d)" \
          && git clone https://github.com/kolyshkin/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"
  
  FROM base AS frozen-images
  ARG DEBIAN_FRONTEND
  RUN --mount=type=cache,sharing=locked,id=moby-frozen-images-aptlib,target=/var/lib/apt \
      --mount=type=cache,sharing=locked,id=moby-frozen-images-aptcache,target=/var/cache/apt \
         apt-get update && apt-get install -y --no-install-recommends \
             ca-certificates \
             jq
  # Get useful and necessary Hub images so we can "docker load" locally instead of pulling
  COPY contrib/download-frozen-image-v2.sh /
  RUN /download-frozen-image-v2.sh /build \
          buildpack-deps:jessie@sha256:dd86dced7c9cd2a724e779730f0a53f93b7ef42228d4344b25ce9a42a1486251 \
          busybox:latest@sha256:bbc3a03235220b170ba48a157dd097dd1379299370e1ed99ce976df0355d24f0 \
          busybox:glibc@sha256:0b55a30394294ab23b9afd58fab94e61a923f5834fba7ddbae7f8e0c11ba85e6 \
          debian:jessie@sha256:287a20c5f73087ab406e6b364833e3fb7b3ae63ca0eb3486555dc27ed32c6e60 \
          hello-world:latest@sha256:be0cd392e45be79ffeffa6b05338b98ebb16c87b255f48e297ec7f98e123905c
  # See also ensureFrozenImagesLinux() in "integration-cli/fixtures_linux_daemon_test.go" (which needs to be updated when adding images to this list)
  
  FROM base AS cross-false
  