-
Notifications
You must be signed in to change notification settings - Fork 369
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Website] Set up vanity import path for Antrea
The import path for the Antrea Go module will now be "antrea.io/antrea". We leverage Netlify's redirect support (this is inspired by the Knative project) to serve the necessary HTML content. It will be super easy to add new Go modules in the future. For now "antrea.io/antrea" points to "github.com/vmware-tanzu/antrea". After we transfer Antrea to the new Github organization (antrea-io), we will update the HTML file appropriately. See #2154
- Loading branch information
1 parent
b0da6b4
commit 9d6a1a5
Showing
3 changed files
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# TODO: this could be auto-generated based on the different repositories in antrea-io | ||
# See https://github.com/knative/website/tree/main/tools/redir-gen | ||
|
||
/antrea/* go-get=1 /golang/antrea.html 200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<html><head> | ||
<meta name="go-import" content="antrea.io/antrea git https://github.com/vmware-tanzu/antrea"> | ||
<meta name="go-source" content="antrea.io/antrea https://github.com/vmware-tanzu/antrea https://github.com/vmware-tanzu/antrea/tree/main{/dir} https://github.com/vmware-tanzu/antrea/blob/main{/dir}/{file}#L{line}"> | ||
</head></html> |