---
platform: linux

image_resource:
  type: docker-image
  source:
    repository: concourse/git-resource

inputs:
- name: garden-runc
- name: garden-runc-src

outputs:
- name: garden-runc-release

run:
  path: sh
  args:
  - -exc
  - |
    tag=v$(cat garden-runc/version)
    git -C ./garden-runc-src fetch --tags
    git clone --branch $tag --recursive ./garden-runc-src ./garden-runc-release

---
platform: linux

image_resource:
  type: docker-image
  source:
    repository: concourse/git-resource

inputs:
- name: garden-runc
- name: garden-runc-src

outputs:
- name: garden-runc-release

run:
  path: sh
  args:
  - -exc
  - |
    tag=v$(cat garden-runc/version)

    git -C ./garden-runc-src fetch --tags
    git clone --branch $tag --recursive ./garden-runc-src ./garden-runc-release

    # prune golang.org/x/net/trace
    # https://stackoverflow.com/questions/47938005/panic-http-multiple-registrations-for-debug-requests
    find . -path '*/vendor/x/net/trace' | xargs -n1 rm -r

Remove x/net/trace from garden vendor package
Remove x/net/trace from garden vendor package

Signed-off-by: Tanzeeb Khalili <bd6724f768e7d1366ae4e782afcbe8795dea9656@gmail.com>
