Skip to content

Instantly share code, notes, and snippets.

@mkmik
Created June 10, 2020 03:13
Show Gist options
  • Save mkmik/5a4f5f3d973d2af7260b2698d0f520f9 to your computer and use it in GitHub Desktop.
Save mkmik/5a4f5f3d973d2af7260b2698d0f520f9 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
path="$1"
if [ -z "${path}" ]; then
echo "usage: $0 <package or path>"
exit 1
fi
pkg=$(go list "${path}")
ko resolve -L --strict -f <(echo ko://"${pkg}") | head -n 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment