(no title)
fiedzia | 1 year ago
- version constraints - source of packages (you may want to host them yourself one day) - any additional metadata (some packages have options or features)
fiedzia | 1 year ago
- version constraints - source of packages (you may want to host them yourself one day) - any additional metadata (some packages have options or features)
stevebmark|1 year ago
klodolph|1 year ago
For example… let’s say you have just plain search-replace and no smart tools. You need to update github.com/abc/def to github.com/abc/def/v2. This is a search-replace operation.
This only happens when packages publish breaking changes. The minor version is stored in go.mod.
pavlov|1 year ago
klodolph|1 year ago
Nowadays, the version constraints are specified in go.mod. Because the fully-qualified package names are used to import them, you can reconstruct go.mod from the sources, assuming that you don’t care about version numbers.
The source code says which packages, the go.mod file says which versions. (Major versions have different import paths.)