5 ms·
Why would you want to use an older version of a package? Just to ensure compatibility by using a version known to work?
by dead10ck 12y ago
Why would you want to use an older version of a package? Just to ensure compatibility by using a version known to work?
- forsaken 12y agoYes
- grey-area 12y agoBecause of the way go get works when people are sharing packages. As an example: Package author blub shares his package with the world, or his team, which depends on github.com/blab/blab. Unfortunately a week later github.com/blab/blab goes through a major rewrite, and breaks blub, but people doing go get blub get the new blab, and their build is broken, so they start complaining to the blub author. Solutions to this: Expect blab never to make a breaking change (somewhat optimistic) Vendor a specific version of blab into blub and update manually Explicitly specify a version of blab to use with a dependency tool Each approach has some drawbacks.