diff options
| author | Tatiana Bradley <tatianabradley@google.com> | 2023-03-07 16:52:27 -0500 |
|---|---|---|
| committer | Tatiana Bradley <tatianabradley@google.com> | 2023-03-08 18:31:20 +0000 |
| commit | 08176819271a487f4b938e99ee3a5fca0ab78845 (patch) | |
| tree | b7d7dabcf7519ebfd4ce2925c6b5560416d8a7e2 /internal/frontend/server.go | |
| parent | a0d43ae455c83d630478cbb3f105b1bb4879b419 (diff) | |
| download | go-x-pkgsite-08176819271a487f4b938e99ee3a5fca0ab78845.tar.xz | |
internal/frontend, internal/vulns: isolate references to x/vuln repo
No-op refactor to move all code that depends on x/vuln to the
internal/vuln (renamed from internal/vulns) package. This will allow
us to more easily remove the dependency, as a part of the migration to
the v1 database schema.
For golang/go#58928
Change-Id: Ic8ac2377832d8e4a2a6afbb42729a7e10553665c
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/474255
Reviewed-by: Julie Qiu <julieqiu@google.com>
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
Run-TryBot: Tatiana Bradley <tatianabradley@google.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'internal/frontend/server.go')
| -rw-r--r-- | internal/frontend/server.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/frontend/server.go b/internal/frontend/server.go index dae9c635..96c8c3e8 100644 --- a/internal/frontend/server.go +++ b/internal/frontend/server.go @@ -37,9 +37,9 @@ import ( "golang.org/x/pkgsite/internal/queue" "golang.org/x/pkgsite/internal/static" "golang.org/x/pkgsite/internal/version" + "golang.org/x/pkgsite/internal/vuln" "golang.org/x/text/cases" "golang.org/x/text/language" - vulnc "golang.org/x/vuln/client" ) // Server can be installed to serve the go discovery frontend. @@ -59,7 +59,7 @@ type Server struct { serveStats bool reportingClient *errorreporting.Client fileMux *http.ServeMux - vulnClient vulnc.Client + vulnClient *vuln.Client versionID string instanceID string @@ -81,7 +81,7 @@ type ServerConfig struct { DevMode bool StaticPath string // used only for dynamic loading in dev mode ReportingClient *errorreporting.Client - VulndbClient vulnc.Client + VulndbClient *vuln.Client } // NewServer creates a new Server for the given database and template directory. |
