-
-
Save mkmik/5a4f5f3d973d2af7260b2698d0f520f9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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