Redirect goimports properly (#5656)

* redirect goimports properly

* don't override func-go
This commit is contained in:
Mahamed Ali 2023-08-03 21:48:21 +03:00 committed by GitHub
parent da2c5ffbca
commit 7d53fd6162
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 7 deletions

View File

@ -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

View File

@ -1,4 +1,4 @@
<html><head>
<meta name="go-import" content="knative.dev/runtime git https://github.com/knative-extensions/func-go">
<meta name="go-source" content="knative.dev/runtime https://github.com/knative-extensions/func-go https://github.com/knative-extensions/func-go/tree/main{/dir} https://github.com/knative-extensions/func-go/blob/main{/dir}/{file}#L{line}">
<meta name="go-import" content="knative.dev/func-go git https://github.com/knative-extensions/func-go">
<meta name="go-source" content="knative.dev/func-go https://github.com/knative-extensions/func-go https://github.com/knative-extensions/func-go/tree/main{/dir} https://github.com/knative-extensions/func-go/blob/main{/dir}/{file}#L{line}">
</head></html>

View File

@ -44,7 +44,7 @@ var (
redirectingGoRepos = []string{"pkg", "serving", "security-guard"}
repoToModule = map[string]string{
"func-go": "runtime",
"func-go": "func-go",
}
)