| ▲ | squiggleblaz 2 days ago | ||||||||||||||||||||||
>My package really does depend on the latest patch release! > Even in the event that your packages code is only correct with a specific patch release, I still think its wrong to put that version in the go directive unless it cannot be compiled with any other version. I'm not a go user, but this strikes me as an over-reaction. If your code is only correct with a specific patch release, then it really is your business to make that so. If someone downstream wants to use library_method_broadly_correct and not library_method_correct_only_with_latest, then downstream should patch your source to allow them to do something unsupported. That becomes their problem. If this is likely to be a significant problem that will affect many users, then this is a codesmell warning you that you've probably got two libraries which you're just jumbling together into one: the solution isn't to falsely gate a safe function behind a high dependency version, nor to falsely release a function to people who can't use it safely, but to publish each with its own requirements expressly stated. | |||||||||||||||||||||||
| ▲ | Aurornis 2 days ago | parent | next [-] | ||||||||||||||||||||||
That part struck me as well. I agree with the premise that the field should represent the minimum supported version, but I don’t understand the argument that it shouldn’t be set to the minimum supported version that works. That’s the point of a minimum supported version field. | |||||||||||||||||||||||
| |||||||||||||||||||||||
| ▲ | howardjohn 2 days ago | parent | prev | next [-] | ||||||||||||||||||||||
I can admit that part was maybe a bit extreme :) fortunately in practice this would be a pretty rare situation IME due to how compatible Go is across versions. (Blog author) | |||||||||||||||||||||||
| |||||||||||||||||||||||
| ▲ | websap 2 days ago | parent | prev [-] | ||||||||||||||||||||||
Yeah, sounds like a skill issue. | |||||||||||||||||||||||