aboutsummaryrefslogtreecommitdiff
path: root/internal/testing/sample
diff options
context:
space:
mode:
authorJulie Qiu <julie@golang.org>2020-10-16 18:19:05 -0400
committerJulie Qiu <julie@golang.org>2020-10-19 18:43:57 +0000
commitc922df1ef4a699085eabcbaae5ec85abcf3569b9 (patch)
tree8ff8778732b44236cea5b16f2b281339838df5e6 /internal/testing/sample
parent8184ed8936e99b9ecc8c21d837742994380d5191 (diff)
downloadgo-x-pkgsite-c922df1ef4a699085eabcbaae5ec85abcf3569b9.tar.xz
internal/testing/sample: use AddPackage in LegacyDefaultModule
For golang/go#39629 Change-Id: If017c090b179554cd7c05177c941e1c1765f6139 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/263216 Trust: Julie Qiu <julie@golang.org> Run-TryBot: Julie Qiu <julie@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Jamal Carvalho <jamal@golang.org>
Diffstat (limited to 'internal/testing/sample')
-rw-r--r--internal/testing/sample/legacy.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/internal/testing/sample/legacy.go b/internal/testing/sample/legacy.go
index 431675ff..d7f4b19d 100644
--- a/internal/testing/sample/legacy.go
+++ b/internal/testing/sample/legacy.go
@@ -39,9 +39,7 @@ func LegacyPackage(modulePath, suffix string) *internal.LegacyPackage {
}
func LegacyDefaultModule() *internal.Module {
- return LegacyAddPackage(
- LegacyModule(ModulePath, VersionString),
- LegacyPackage(ModulePath, Suffix))
+ return AddPackage(LegacyModule(ModulePath, VersionString), ModulePath+"/"+Suffix)
}
// LegacyModule creates a Module with the given path and version.