News for hackers. Stuff that matters.
Re:A New Go API for JSON by kbolino on Thursday November 05, 2026 @09:59AM (#50379917)
> there should be an easier way to "pin" a dependency, other than vendoring

Put this in your go.mod:

  replace example.com/package-to-pin => example.com/package-to-pin v1.2.3
Then go.sum will do its actual job (along with GOSUMDB) and ensure you get exactly the revision of the code that you want.

There are no comments on this comment yet.