Skip to content

Instantly share code, notes, and snippets.

@SgtPooki
Created July 28, 2025 18:29
Show Gist options
  • Save SgtPooki/de2ceae1d3b6206abb5f0f3b80db3f34 to your computer and use it in GitHub Desktop.
Save SgtPooki/de2ceae1d3b6206abb5f0f3b80db3f34 to your computer and use it in GitHub Desktop.
golang helpers
# When consuming changes that are currently in PR for a dependency, run the following:
PKG=ipfs/go-log/v2
COMMIT=174cfdbd11a553230949ce958e66a90f07772ab6
go get github.com/$PKG@$COMMIT && go mod tidy
# IF there are multiple go.mod files to update, like in ipfs/kubo for instance, use the following
PKG=ipfs/go-log/v2
COMMIT=174cfdbd11a553230949ce958e66a90f07772ab6
go get github.com/$PKG@$COMMIT && find . -name go.mod -execdir go mod tidy \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment