# ***
# WARNING: Do not EDIT or MERGE this file, it is generated by packagespec.
# ***
lockid: 748714d3a36e1911
packagespec-version: 0.1.3
cache-version: 8
packages:
- packagespecid: 3f81e804b31cb70e63a9c834931d9a0a4c2e2bb3
  inputs:
    BINARY_NAME: boundary
    BUILD_TAGS: ui
    CGO_ENABLED: "0"
    GOARCH: amd64
    GOOS: darwin
    PRODUCT_NAME: boundary
    PRODUCT_VERSION: 0.1.0-beta.2
    PRODUCT_VERSION_MMP: 0.1.0
    PRODUCT_VERSION_PRE: beta.2
  meta:
    BUILD_JOB_NAME: darwin_amd64_package
    BUNDLE_NAME: boundary_0.1.0-beta.2
    POST_PROCESSORS: apple-notarize av-scan
    builtin:
      BUILD_LAYERS:
      - type: copy-source
        name: 03-copy-source-dde49480ad145a6d7ce0f55c0d23e6f50c04d8d3
        archive: .buildcache/archives/03-copy-source-dde49480ad145a6d7ce0f55c0d23e6f50c04d8d3.tar.gz
      - type: go-modules
        name: 02-go-modules-694e8500194e3b187b35bd9a40229f3bd215710e
        archive: .buildcache/archives/02-go-modules-694e8500194e3b187b35bd9a40229f3bd215710e.tar.gz
      - type: ui
        name: 01-ui-5f82d1f0cbf979ee051aa1ba0f7105483fa6947d
        archive: .buildcache/archives/01-ui-5f82d1f0cbf979ee051aa1ba0f7105483fa6947d.tar.gz
      - type: base
        name: 00-base-aac1d959b4b3af1495941602b5e51fb6181baded
        archive: .buildcache/archives/00-base-aac1d959b4b3af1495941602b5e51fb6181baded.tar.gz
      PACKAGE_CACHE_KEY_FILE: .buildcache/cache-keys/package-3f81e804b31cb70e63a9c834931d9a0a4c2e2bb3
    circleci:
      BUILDER_CACHE_KEY_PREFIX_LIST:
      - copy-source_dde4_{{checksum ".buildcache/cache-keys/copy-source-dde49480ad145a6d7ce0f55c0d23e6f50c04d8d3"}}
      - go-modules_694e_{{checksum ".buildcache/cache-keys/go-modules-694e8500194e3b187b35bd9a40229f3bd215710e"}}
      - ui_5f82_{{checksum ".buildcache/cache-keys/ui-5f82d1f0cbf979ee051aa1ba0f7105483fa6947d"}}
      - base_aac1_{{checksum ".buildcache/cache-keys/base-aac1d959b4b3af1495941602b5e51fb6181baded"}}
      PACKAGE_CACHE_KEY: package-3f81e804b31cb70e63a9c834931d9a0a4c2e2bb3-{{checksum
        ".buildcache/cache-keys/package-3f81e804b31cb70e63a9c834931d9a0a4c2e2bb3"}}
  build-command: VERSION_PKG_PATH=github.com/hashicorp/boundary/version; unset GOPATH;
    go build -v -tags 'ui' -ldflags "-X $VERSION_PKG_PATH.GitCommit=$PACKAGE_SOURCE_ID
    -X $VERSION_PKG_PATH.Version=0.1.0 -X $VERSION_PKG_PATH.VersionPrerelease=beta.2"
    -o $OUTPUT_DIR/boundary ./cmd/boundary && cd $OUTPUT_DIR && zip $PACKAGE_ZIP_NAME
    boundary
  aliases:
  - type: local
    path: boundary_0.1.0-beta.2_darwin_amd64.zip
  - type: github-releases
    path: boundary_0.1.0-beta.2_darwin_amd64.zip
- packagespecid: 26ad460ac09efc9c56bdbb7a962ff92616c06c51
  inputs:
    BINARY_NAME: boundary
    BUILD_TAGS: ui
    CGO_ENABLED: "0"
    GOARCH: amd64
    GOOS: linux
    PRODUCT_NAME: boundary
    PRODUCT_VERSION: 0.1.0-beta.2
    PRODUCT_VERSION_MMP: 0.1.0
    PRODUCT_VERSION_PRE: beta.2
  meta:
    BUILD_JOB_NAME: linux_amd64_package
    BUNDLE_NAME: boundary_0.1.0-beta.2
    POST_PROCESSORS: av-scan
    builtin:
      BUILD_LAYERS:
      - type: copy-source
        name: 03-copy-source-dde49480ad145a6d7ce0f55c0d23e6f50c04d8d3
        archive: .buildcache/archives/03-copy-source-dde49480ad145a6d7ce0f55c0d23e6f50c04d8d3.tar.gz
      - type: go-modules
        name: 02-go-modules-694e8500194e3b187b35bd9a40229f3bd215710e
        archive: .buildcache/archives/02-go-modules-694e8500194e3b187b35bd9a40229f3bd215710e.tar.gz
      - type: ui
        name: 01-ui-5f82d1f0cbf979ee051aa1ba0f7105483fa6947d
        archive: .buildcache/archives/01-ui-5f82d1f0cbf979ee051aa1ba0f7105483fa6947d.tar.gz
      - type: base
        name: 00-base-aac1d959b4b3af1495941602b5e51fb6181baded
        archive: .buildcache/archives/00-base-aac1d959b4b3af1495941602b5e51fb6181baded.tar.gz
      PACKAGE_CACHE_KEY_FILE: .buildcache/cache-keys/package-26ad460ac09efc9c56bdbb7a962ff92616c06c51
    circleci:
      BUILDER_CACHE_KEY_PREFIX_LIST:
      - copy-source_dde4_{{checksum ".buildcache/cache-keys/copy-source-dde49480ad145a6d7ce0f55c0d23e6f50c04d8d3"}}
      - go-modules_694e_{{checksum ".buildcache/cache-keys/go-modules-694e8500194e3b187b35bd9a40229f3bd215710e"}}
      - ui_5f82_{{checksum ".buildcache/cache-keys/ui-5f82d1f0cbf979ee051aa1ba0f7105483fa6947d"}}
      - base_aac1_{{checksum ".buildcache/cache-keys/base-aac1d959b4b3af1495941602b5e51fb6181baded"}}
      PACKAGE_CACHE_KEY: package-26ad460ac09efc9c56bdbb7a962ff92616c06c51-{{checksum
        ".buildcache/cache-keys/package-26ad460ac09efc9c56bdbb7a962ff92616c06c51"}}
  build-command: VERSION_PKG_PATH=github.com/hashicorp/boundary/version; unset GOPATH;
    go build -v -tags 'ui' -ldflags "-X $VERSION_PKG_PATH.GitCommit=$PACKAGE_SOURCE_ID
    -X $VERSION_PKG_PATH.Version=0.1.0 -X $VERSION_PKG_PATH.VersionPrerelease=beta.2"
    -o $OUTPUT_DIR/boundary ./cmd/boundary && cd $OUTPUT_DIR && zip $PACKAGE_ZIP_NAME
    boundary
  aliases:
  - type: local
    path: boundary_0.1.0-beta.2_linux_amd64.zip
  - type: github-releases
    path: boundary_0.1.0-beta.2_linux_amd64.zip
- packagespecid: 6b5bf7794d67cf76b1b4772807af52deb1f6a808
  inputs:
    BINARY_NAME: boundary.exe
    BUILD_TAGS: ui
    CGO_ENABLED: "0"
    GOARCH: amd64
    GOOS: windows
    PRODUCT_NAME: boundary
    PRODUCT_VERSION: 0.1.0-beta.2
    PRODUCT_VERSION_MMP: 0.1.0
    PRODUCT_VERSION_PRE: beta.2
  meta:
    BUILD_JOB_NAME: windows_amd64_package
    BUNDLE_NAME: boundary_0.1.0-beta.2
    POST_PROCESSORS: microsoft-notarize av-scan
    builtin:
      BUILD_LAYERS:
      - type: copy-source
        name: 03-copy-source-dde49480ad145a6d7ce0f55c0d23e6f50c04d8d3
        archive: .buildcache/archives/03-copy-source-dde49480ad145a6d7ce0f55c0d23e6f50c04d8d3.tar.gz
      - type: go-modules
        name: 02-go-modules-694e8500194e3b187b35bd9a40229f3bd215710e
        archive: .buildcache/archives/02-go-modules-694e8500194e3b187b35bd9a40229f3bd215710e.tar.gz
      - type: ui
        name: 01-ui-5f82d1f0cbf979ee051aa1ba0f7105483fa6947d
        archive: .buildcache/archives/01-ui-5f82d1f0cbf979ee051aa1ba0f7105483fa6947d.tar.gz
      - type: base
        name: 00-base-aac1d959b4b3af1495941602b5e51fb6181baded
        archive: .buildcache/archives/00-base-aac1d959b4b3af1495941602b5e51fb6181baded.tar.gz
      PACKAGE_CACHE_KEY_FILE: .buildcache/cache-keys/package-6b5bf7794d67cf76b1b4772807af52deb1f6a808
    circleci:
      BUILDER_CACHE_KEY_PREFIX_LIST:
      - copy-source_dde4_{{checksum ".buildcache/cache-keys/copy-source-dde49480ad145a6d7ce0f55c0d23e6f50c04d8d3"}}
      - go-modules_694e_{{checksum ".buildcache/cache-keys/go-modules-694e8500194e3b187b35bd9a40229f3bd215710e"}}
      - ui_5f82_{{checksum ".buildcache/cache-keys/ui-5f82d1f0cbf979ee051aa1ba0f7105483fa6947d"}}
      - base_aac1_{{checksum ".buildcache/cache-keys/base-aac1d959b4b3af1495941602b5e51fb6181baded"}}
      PACKAGE_CACHE_KEY: package-6b5bf7794d67cf76b1b4772807af52deb1f6a808-{{checksum
        ".buildcache/cache-keys/package-6b5bf7794d67cf76b1b4772807af52deb1f6a808"}}
  build-command: VERSION_PKG_PATH=github.com/hashicorp/boundary/version; unset GOPATH;
    go build -v -tags 'ui' -ldflags "-X $VERSION_PKG_PATH.GitCommit=$PACKAGE_SOURCE_ID
    -X $VERSION_PKG_PATH.Version=0.1.0 -X $VERSION_PKG_PATH.VersionPrerelease=beta.2"
    -o $OUTPUT_DIR/boundary.exe ./cmd/boundary && cd $OUTPUT_DIR && zip $PACKAGE_ZIP_NAME
    boundary.exe
  aliases:
  - type: local
    path: boundary_0.1.0-beta.2_windows_amd64.zip
  - type: github-releases
    path: boundary_0.1.0-beta.2_windows_amd64.zip
base-image: golang@sha256:29452ef08bd0535f550c47b6034522c82ac10517b49c5f3b7a00035ecee0089e
layers:
- depth: 0
  final: false
  type: base
  id: aac1d959b4b3af1495941602b5e51fb6181baded
  name: 00-base-aac1d959b4b3af1495941602b5e51fb6181baded
  parentname: ""
  parenttype: ""
  parentid: ""
  cachekeyfile: .buildcache/cache-keys/base-aac1d959b4b3af1495941602b5e51fb6181baded
  sourceinclude: ""
  sourceexclude: ""
  archivefile: .buildcache/archives/00-base-aac1d959b4b3af1495941602b5e51fb6181baded.tar.gz
  dockerfile: |
    # syntax=docker/dockerfile:1.1.7-experimental
    FROM golang@sha256:29452ef08bd0535f550c47b6034522c82ac10517b49c5f3b7a00035ecee0089e
    COPY . ./
    ENV \
      GOPATH= \
      GOBIN=/usr/local/bin \
      GO111MODULE=on \
      GOPRIVATE=github.com/hashicorp/* \
      GOCACHE=/go/cache \
      CGO_ENABLED=0
    RUN --mount=type=ssh \
        go env && mkdir -p "$GOCACHE" \
        && curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg \
         | apt-key add - \
        && echo "deb https://dl.yarnpkg.com/debian/ stable main" \
         | tee /etc/apt/sources.list.d/yarn.list \
        && apt-get update \
        && apt-get install -yq yarn zip \
        && mkdir -m 700 /root/.ssh \
        && touch -m 600 /root/.ssh/known_hosts \
        && ssh-keyscan github.com > /root/.ssh/known_hosts \
        && git config --global url."git@github.com:".insteadOf https://github.com/ \
        && go get github.com/go-bindata/go-bindata/v3/go-bindata \
        && go-bindata --version
  meta:
    builtin:
      LAYER_LIST:
      - type: base
        name: 00-base-aac1d959b4b3af1495941602b5e51fb6181baded
        archive: .buildcache/archives/00-base-aac1d959b4b3af1495941602b5e51fb6181baded.tar.gz
    circleci:
      CACHE_KEY_PREFIX_LIST:
      - base_aac1_{{checksum ".buildcache/cache-keys/base-aac1d959b4b3af1495941602b5e51fb6181baded"}}
  childcount: 1
- depth: 1
  final: false
  type: ui
  id: 5f82d1f0cbf979ee051aa1ba0f7105483fa6947d
  name: 01-ui-5f82d1f0cbf979ee051aa1ba0f7105483fa6947d
  parentname: 00-base-aac1d959b4b3af1495941602b5e51fb6181baded
  parenttype: base
  parentid: aac1d959b4b3af1495941602b5e51fb6181baded
  cachekeyfile: .buildcache/cache-keys/ui-5f82d1f0cbf979ee051aa1ba0f7105483fa6947d
  sourceinclude: internal/ui/VERSION
  sourceexclude: ""
  archivefile: .buildcache/archives/01-ui-5f82d1f0cbf979ee051aa1ba0f7105483fa6947d.tar.gz
  dockerfile: |
    # syntax=docker/dockerfile:1.1.7-experimental
    ARG BASE_IMAGE
    FROM $BASE_IMAGE
    COPY . ./
    RUN --mount=type=ssh \
        SHA="$(head -n1 internal/ui/VERSION | cut -d ' ' -f1)" \
        && DIR=internal/ui/source/boundary-ui \
        && mkdir -p "$(dirname "$DIR")" \
        && git clone https://github.com/hashicorp/boundary-ui "$DIR" \
        && ( cd "$DIR" \
        && git fetch origin "$SHA" \
        && git checkout "$SHA" \
        && yarn install \
        && yarn build:ui:core; ) \
        && TARGET=internal/ui/assets.go \
        && UIDIR="$DIR/ui/core/dist" \
        && go-bindata -fs -o "$TARGET" -pkg ui \
           -prefix "$UIDIR" "$UIDIR" "$UIDIR/assets" \
        && rm -rf "$DIR"
  meta:
    builtin:
      LAYER_LIST:
      - type: ui
        name: 01-ui-5f82d1f0cbf979ee051aa1ba0f7105483fa6947d
        archive: .buildcache/archives/01-ui-5f82d1f0cbf979ee051aa1ba0f7105483fa6947d.tar.gz
      - type: base
        name: 00-base-aac1d959b4b3af1495941602b5e51fb6181baded
        archive: .buildcache/archives/00-base-aac1d959b4b3af1495941602b5e51fb6181baded.tar.gz
    circleci:
      CACHE_KEY_PREFIX_LIST:
      - ui_5f82_{{checksum ".buildcache/cache-keys/ui-5f82d1f0cbf979ee051aa1ba0f7105483fa6947d"}}
      - base_aac1_{{checksum ".buildcache/cache-keys/base-aac1d959b4b3af1495941602b5e51fb6181baded"}}
  childcount: 1
- depth: 2
  final: false
  type: go-modules
  id: 694e8500194e3b187b35bd9a40229f3bd215710e
  name: 02-go-modules-694e8500194e3b187b35bd9a40229f3bd215710e
  parentname: 01-ui-5f82d1f0cbf979ee051aa1ba0f7105483fa6947d
  parenttype: ui
  parentid: 5f82d1f0cbf979ee051aa1ba0f7105483fa6947d
  cachekeyfile: .buildcache/cache-keys/go-modules-694e8500194e3b187b35bd9a40229f3bd215710e
  sourceinclude: go.mod go.sum
  sourceexclude: ""
  archivefile: .buildcache/archives/02-go-modules-694e8500194e3b187b35bd9a40229f3bd215710e.tar.gz
  dockerfile: |
    # syntax=docker/dockerfile:1.1.7-experimental
    ARG BASE_IMAGE
    FROM $BASE_IMAGE
    COPY . ./
    RUN --mount=type=ssh go mod download -x
  meta:
    builtin:
      LAYER_LIST:
      - type: go-modules
        name: 02-go-modules-694e8500194e3b187b35bd9a40229f3bd215710e
        archive: .buildcache/archives/02-go-modules-694e8500194e3b187b35bd9a40229f3bd215710e.tar.gz
      - type: ui
        name: 01-ui-5f82d1f0cbf979ee051aa1ba0f7105483fa6947d
        archive: .buildcache/archives/01-ui-5f82d1f0cbf979ee051aa1ba0f7105483fa6947d.tar.gz
      - type: base
        name: 00-base-aac1d959b4b3af1495941602b5e51fb6181baded
        archive: .buildcache/archives/00-base-aac1d959b4b3af1495941602b5e51fb6181baded.tar.gz
    circleci:
      CACHE_KEY_PREFIX_LIST:
      - go-modules_694e_{{checksum ".buildcache/cache-keys/go-modules-694e8500194e3b187b35bd9a40229f3bd215710e"}}
      - ui_5f82_{{checksum ".buildcache/cache-keys/ui-5f82d1f0cbf979ee051aa1ba0f7105483fa6947d"}}
      - base_aac1_{{checksum ".buildcache/cache-keys/base-aac1d959b4b3af1495941602b5e51fb6181baded"}}
  childcount: 1
- depth: 3
  final: true
  type: copy-source
  id: dde49480ad145a6d7ce0f55c0d23e6f50c04d8d3
  name: 03-copy-source-dde49480ad145a6d7ce0f55c0d23e6f50c04d8d3
  parentname: 02-go-modules-694e8500194e3b187b35bd9a40229f3bd215710e
  parenttype: go-modules
  parentid: 694e8500194e3b187b35bd9a40229f3bd215710e
  cachekeyfile: .buildcache/cache-keys/copy-source-dde49480ad145a6d7ce0f55c0d23e6f50c04d8d3
  sourceinclude: '*.go'
  sourceexclude: ""
  archivefile: .buildcache/archives/03-copy-source-dde49480ad145a6d7ce0f55c0d23e6f50c04d8d3.tar.gz
  dockerfile: |
    # syntax=docker/dockerfile:1.1.7-experimental
    ARG BASE_IMAGE
    FROM $BASE_IMAGE
    COPY . ./
    RUN go build -v -tags 'ui' -o /dev/null ./cmd/boundary
  meta:
    builtin:
      LAYER_LIST:
      - type: copy-source
        name: 03-copy-source-dde49480ad145a6d7ce0f55c0d23e6f50c04d8d3
        archive: .buildcache/archives/03-copy-source-dde49480ad145a6d7ce0f55c0d23e6f50c04d8d3.tar.gz
      - type: go-modules
        name: 02-go-modules-694e8500194e3b187b35bd9a40229f3bd215710e
        archive: .buildcache/archives/02-go-modules-694e8500194e3b187b35bd9a40229f3bd215710e.tar.gz
      - type: ui
        name: 01-ui-5f82d1f0cbf979ee051aa1ba0f7105483fa6947d
        archive: .buildcache/archives/01-ui-5f82d1f0cbf979ee051aa1ba0f7105483fa6947d.tar.gz
      - type: base
        name: 00-base-aac1d959b4b3af1495941602b5e51fb6181baded
        archive: .buildcache/archives/00-base-aac1d959b4b3af1495941602b5e51fb6181baded.tar.gz
    circleci:
      CACHE_KEY_PREFIX_LIST:
      - copy-source_dde4_{{checksum ".buildcache/cache-keys/copy-source-dde49480ad145a6d7ce0f55c0d23e6f50c04d8d3"}}
      - go-modules_694e_{{checksum ".buildcache/cache-keys/go-modules-694e8500194e3b187b35bd9a40229f3bd215710e"}}
      - ui_5f82_{{checksum ".buildcache/cache-keys/ui-5f82d1f0cbf979ee051aa1ba0f7105483fa6947d"}}
      - base_aac1_{{checksum ".buildcache/cache-keys/base-aac1d959b4b3af1495941602b5e51fb6181baded"}}
  childcount: 0
