Skip to content

Instantly share code, notes, and snippets.

@GauntletWizard
Created November 7, 2018 19:36
Show Gist options
  • Select an option

  • Save GauntletWizard/21685212382c194074bd44efdf10abd1 to your computer and use it in GitHub Desktop.

Select an option

Save GauntletWizard/21685212382c194074bd44efdf10abd1 to your computer and use it in GitHub Desktop.
Bazel godep
# List current version of a go get installed package
# For bazel, I need the munged name, it's github location, and current HEAD.
git -C "$(go list -f '{{.Dir}}' gopkg.in/yaml.v2)" rev-parse HEAD
git -C "$(go list -f '{{.Dir}}' gopkg.in/yaml.v2)" remote get-url origin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment