#!/usr/bin/env bash
# Should be run from the bazel workspace root
# Usage: ./continuum/tools/generate_archive_from_target.sh //my/bazel:target
set -eou pipefail

tar_path=$(mktemp)
python pipedream/common/archive/bazel_build_archive.py --target="${1}" --archive-dest=${tar_path} >&2
echo ${tar_path}
