Skip to content

Commit

Permalink
Redirect goimports properly (#5656)
Browse files Browse the repository at this point in the history
* redirect goimports properly

* don't override func-go
  • Loading branch information
upodroid authored Aug 3, 2023
1 parent da2c5ff commit 7d53fd6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 0 additions & 4 deletions golang/_redirects
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions golang/func-go.html
Original file line number Diff line number Diff line change
@@ -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>
2 changes: 1 addition & 1 deletion tools/redir-gen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ var (
redirectingGoRepos = []string{"pkg", "serving", "security-guard"}

repoToModule = map[string]string{
"func-go": "runtime",
"func-go": "func-go",
}
)

Expand Down

0 comments on commit 7d53fd6

Please sign in to comment.