Skip to content

Instantly share code, notes, and snippets.

@adrianriobo
Created December 23, 2022 13:20
Show Gist options
  • Save adrianriobo/399179ae9a702f3351c98d3208872212 to your computer and use it in GitHub Desktop.
Save adrianriobo/399179ae9a702f3351c98d3208872212 to your computer and use it in GitHub Desktop.
Go cheatsheet
To get the v for a module from a different repo on a specific commit:
go get github.com/adrianriobo/pulumi-command@4007017bb359927f8474c223a753d6f2d4be79e2
This will add the required dependency on go.mod:
require (
github.com/adrianriobo/pulumi-command v0.0.0-20221223131545-4007017bb359 // indirect
...
)
Then use replace with the value:
replace github.com/pulumi/pulumi-command/sdk => github.com/adrianriobo/pulumi-command/sdk v0.0.0-20221223113640-4d64615aff90
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment