aboutsummaryrefslogtreecommitdiff
path: root/internal/testing/sample/sample.go
diff options
context:
space:
mode:
authorJonathan Amsterdam <jba@google.com>2021-01-06 08:25:12 -0500
committerJonathan Amsterdam <jba@google.com>2021-01-06 15:19:10 +0000
commite0c9624f6ac82d5c841db47d2d80a9ea29054d0c (patch)
tree1b1ba7560919d247931c81d67e1f34907b9a844a /internal/testing/sample/sample.go
parent03fd23c91faa08eecce9e2b074d454a0b3d144d9 (diff)
downloadgo-x-pkgsite-e0c9624f6ac82d5c841db47d2d80a9ea29054d0c.tar.xz
internal/licenses: upgrade to latest licensecheck
The new licensecheck is a rewrite of the old with a different API and implementation. We will eventually switch to it, but first we upgrade to a version with both the old and new APIs, and continue using the old one. I confirmed (by running an internal tool) that the change to github.com/google/licensecheck/old@v0.3.1 doesn't affect any licenses in our database. Change-Id: I825b139b45c05b711c39b6018d7ba5f89a1886ad Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/281952 Trust: Jonathan Amsterdam <jba@google.com> Run-TryBot: Jonathan Amsterdam <jba@google.com> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Julie Qiu <julie@golang.org>
Diffstat (limited to 'internal/testing/sample/sample.go')
-rw-r--r--internal/testing/sample/sample.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/testing/sample/sample.go b/internal/testing/sample/sample.go
index d39eb608..9a3d3ca2 100644
--- a/internal/testing/sample/sample.go
+++ b/internal/testing/sample/sample.go
@@ -17,6 +17,7 @@ import (
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/google/licensecheck"
+ oldlicensecheck "github.com/google/licensecheck/old"
"golang.org/x/pkgsite/internal"
"golang.org/x/pkgsite/internal/licenses"
"golang.org/x/pkgsite/internal/source"
@@ -37,9 +38,9 @@ var (
{
Types: []string{LicenseType},
FilePath: LicenseFilePath,
- Coverage: licensecheck.Coverage{
+ Coverage: oldlicensecheck.Coverage{
Percent: 100,
- Match: []licensecheck.Match{{Name: LicenseType, Type: licensecheck.MIT, Percent: 100}},
+ Match: []oldlicensecheck.Match{{Name: LicenseType, Type: oldlicensecheck.MIT, Percent: 100}},
},
},
}