Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use go install instead of go get #107

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/builder/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ limitations under the License.
//
// Install the code generators (from your module):
//
// $ go get sigs.k8s.io/apiserver-runtime/tools/apiserver-runtime-gen
// $ go install sigs.k8s.io/apiserver-runtime/tools/apiserver-runtime-gen
// $ apiserver-runtime-gen --install-generators
//
// Add the code generation tag to you main package:
Expand Down
8 changes: 4 additions & 4 deletions pkg/builder/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func Example() {

cmd, err := builder.APIServer.
// Definitions should be generated apiserver-runtime-gen:
// go get sigs.k8s.io/apiserver-runtime/tools/apiserver-runtime-gen and then add
// go install sigs.k8s.io/apiserver-runtime/tools/apiserver-runtime-gen and then add
// `//go:generate apiserver-runtime-gen` to your main package and run `go generate`
WithOpenAPIDefinitions("example", "v0.0.0", openapi.GetOpenAPIDefinitions).
WithResource(&v1alpha1.ExampleResource{}).
Expand All @@ -59,7 +59,7 @@ func ExampleServer_WithResource() {

cmd, err := builder.APIServer.
// Definitions should be generated apiserver-runtime-gen:
// go get sigs.k8s.io/apiserver-runtime/tools/apiserver-runtime-gen and then add
// go install sigs.k8s.io/apiserver-runtime/tools/apiserver-runtime-gen and then add
// `//go:generate apiserver-runtime-gen` to your main package and run `go generate`
WithOpenAPIDefinitions("example", "v0.0.0", openapi.GetOpenAPIDefinitions).
// v1alpha1 will be the storage version because it was registered first
Expand All @@ -83,7 +83,7 @@ func ExampleServer_WithResourceAndStrategy() {

cmd, err := builder.APIServer.
// Definitions should be generated apiserver-runtime-gen:
// go get sigs.k8s.io/apiserver-runtime/tools/apiserver-runtime-gen and then add
// go install sigs.k8s.io/apiserver-runtime/tools/apiserver-runtime-gen and then add
// `//go:generate apiserver-runtime-gen` to your main package and run `go generate`
WithOpenAPIDefinitions("example", "v0.0.0", openapi.GetOpenAPIDefinitions).
// v1alpha1 will be the storage version because it was registered first, and objects will be stored
Expand All @@ -110,7 +110,7 @@ func ExampleServer_WithResourceAndHandler() {

cmd, err := builder.APIServer.
// Definitions should be generated apiserver-runtime-gen:
// go get sigs.k8s.io/apiserver-runtime/tools/apiserver-runtime-gen and then add
// go install sigs.k8s.io/apiserver-runtime/tools/apiserver-runtime-gen and then add
// `//go:generate apiserver-runtime-gen` to your main package and run `go generate`
WithOpenAPIDefinitions("example", "v0.0.0", openapi.GetOpenAPIDefinitions).
// v1alpha1 will be the storage version because it was registered first
Expand Down
Loading