pkgsite/internal/fetch
shaquilleq 103a6b7425 internal/fetch: add versioning for import packages from same module
The HTML documentation for packages currently links imported types and
packages to the latest version of the imported package. Link these to
the same version as the current module instead if the imported package
belongs to the same module.

In the future, we may want to use the go.mod file or the go list command
to link all imports (and not just packages in the same module) to the
same version that the author intended.

Fixes golang/go#38429

Change-Id: If8cc412e11c626003c16595a7037a6c80e728b02
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/241818
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Julie Qiu <julie@golang.org>
2020-07-14 16:10:01 +00:00
..
dochtml internal/fetch: add versioning for import packages from same module 2020-07-14 16:10:01 +00:00
internal/doc internal/fetch/dochtml: update package documentation and issue numbers 2020-06-30 00:10:31 +00:00
directory.go internal: remove New suffix from structs 2020-07-10 17:32:36 +00:00
directory_test.go internal: prefix legacy structs with Legacy 2020-06-08 20:24:07 +00:00
fetch.go internal/fetch: add versioning for import packages from same module 2020-07-14 16:10:01 +00:00
fetch_test.go internal/experiment: improve ergonomics for NewSet and NewContext 2020-07-06 15:32:32 +00:00
fetchdata_test.go internal/fetch/dochtml: render doc safely 2020-07-13 11:14:12 +00:00
limit.go internal/fetch: keep packages with too-large doc 2020-06-12 16:15:13 +00:00
test_helper.go internal/fetch: fix TestFetchModule/stdlib_module test 2020-07-14 13:17:23 +00:00