-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
📖 refactor external type docs to be up to date
Co-authored-by: Steven E. Harris <[email protected]> Co-authored-by: Camila Macedo <[email protected]> Co-authored-by: Bryce Palmer <[email protected]>
- Loading branch information
1 parent
57cfaf8
commit 276c3ac
Showing
2 changed files
with
216 additions
and
70 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -110,7 +110,7 @@ YOUR_GO_PATH/test-operator imports | |
``` | ||
|
||
The reason for this is that you may have not pushed your modules into the VCS yet and resolving the main module will fail as it can no longer | ||
directly access the API types as package but only as module. | ||
directly access the API types as a package but only as a module. | ||
|
||
To solve this issue, we will have to tell the go tooling to properly `replace` the API module with a local reference to your path. | ||
|
||
|
@@ -120,8 +120,8 @@ You can do this with 2 different approaches: go modules and go workspaces. | |
|
||
For go modules, you will edit the main `go.mod` file of your project and issue a replace directive. | ||
|
||
You can do this by editing the go.mod with | ||
|
||
You can do this by editing the `go.mod` with | ||
`` | ||
```shell | ||
go mod edit -require YOUR_GO_PATH/test-operator/api/[email protected] # Only if you didn't already resolve the module | ||
go mod edit -replace YOUR_GO_PATH/test-operator/api/[email protected]=./api/v1alpha1 | ||
|
@@ -148,7 +148,7 @@ go mod tidy | |
|
||
For go workspaces, you will not edit the `go.mod` files yourself, but rely on the workspace support in go. | ||
|
||
To initialize a workspace for your project, run ´go work init` in the project root. | ||
To initialize a workspace for your project, run `go work init` in the project root. | ||
|
||
Now let us include both modules in our workspace: | ||
```shell | ||
|
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