From 7d53fd6162d487e5381ce7accc347b3c5342b959 Mon Sep 17 00:00:00 2001 From: Mahamed Ali Date: Thu, 3 Aug 2023 21:48:21 +0300 Subject: [PATCH] Redirect goimports properly (#5656) * redirect goimports properly * don't override func-go --- golang/_redirects | 4 ---- golang/func-go.html | 4 ++-- tools/redir-gen/main.go | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/golang/_redirects b/golang/_redirects index 9c5c860a31..366d0d691b 100755 --- a/golang/_redirects +++ b/golang/_redirects @@ -6,13 +6,10 @@ # To regenerate, run: # go run ./tools/redir-gen/ /actions/* go-get=:go-get /golang/actions.html 200 -/async-component/* go-get=:go-get /golang/async-component.html 200 /caching/* go-get=:go-get /golang/caching.html 200 /client/* go-get=:go-get /golang/client.html 200 /client-pkg/* go-get=:go-get /golang/client-pkg.html 200 /community/* go-get=:go-get /golang/community.html 200 -/container-freezer/* go-get=:go-get /golang/container-freezer.html 200 -/control-protocol/* go-get=:go-get /golang/control-protocol.html 200 /discovery/* go-get=:go-get /golang/discovery.html 200 /docs/* go-get=:go-get /golang/docs.html 200 /eventing/* go-get=:go-get /golang/eventing.html 200 @@ -65,7 +62,6 @@ /release/* go-get=:go-get /golang/release.html 200 /sample-controller/* go-get=:go-get /golang/sample-controller.html 200 /sample-source/* go-get=:go-get /golang/sample-source.html 200 -/scaling-group/* go-get=:go-get /golang/scaling-group.html 200 /security-guard/* go-get=:go-get /golang/security-guard.html 200 /security-guard/* https://pkg.go.dev/knative.dev/security-guard/:splat /serving/* go-get=:go-get /golang/serving.html 200 diff --git a/golang/func-go.html b/golang/func-go.html index 1b22ce48b7..806047b6c4 100644 --- a/golang/func-go.html +++ b/golang/func-go.html @@ -1,4 +1,4 @@ - - + + diff --git a/tools/redir-gen/main.go b/tools/redir-gen/main.go index 3ce8354381..7aad6b43a2 100644 --- a/tools/redir-gen/main.go +++ b/tools/redir-gen/main.go @@ -44,7 +44,7 @@ var ( redirectingGoRepos = []string{"pkg", "serving", "security-guard"} repoToModule = map[string]string{ - "func-go": "runtime", + "func-go": "func-go", } )