intel / kubernetes-power-manager

Apache License 2.0
83 stars 18 forks source link

Failing build #33

Closed jfialax closed 5 months ago

jfialax commented 1 year ago

`STDOUT: go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.9.0 /root/go/bin/controller-gen "crd:crdVersions=v1" rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases

STDERR: Error: err: exit status 1: stderr: go: cloud.google.com/go/compute@v1.12.1: missing go.sum entry; to add it: go mod download cloud.google.com/go/compute

Usage: controller-gen [flags]

Examples:

Generate RBAC manifests and crds for all types under apis/,

    # outputting crds to /tmp/crds and everything else to stdout
    controller-gen rbac:roleName=<role name> crd paths=./apis/... output:crd:dir=/tmp/crds output:stdout

    # Generate deepcopy/runtime.Object implementations for a particular file
    controller-gen object paths=./apis/v1beta1/some_types.go

    # Generate OpenAPI v3 schemas for API packages and merge them into existing CRD manifests
    controller-gen schemapatch:manifests=./manifests output:dir=./manifests paths=./pkg/apis/...

    # Run all the generators for a given project
    controller-gen paths=./apis/...

    # Explain the markers for generating CRDs, and their arguments
    controller-gen crd -ww

Flags: -h, --detailed-help count print out more detailed help (up to -hhh for the most detailed output, or -hhhh for json output) --help print out usage and a summary of options --version show version -w, --which-markers count print out all markers available with the requested generators (up to -www for the most detailed output, or -wwww for json output)

Options generators +webhook package generates (partial) {Mutating,Validating}WebhookConfiguration objects. +schemapatch[:generateEmbeddedObjectMeta=],manifests=[,maxDescLen=] package patches existing CRDs with new schemata. +rbac:roleName= package generates ClusterRole objects.

+object[:headerFile=][,year=] package generates code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations. +crd[:allowDangerousTypes=][,crdVersions=<[]string>][,generateEmbeddedObjectMeta=][,ignoreUnexportedFields=][,maxDescLen=] package generates CustomResourceDefinition objects.

generic

+paths=<[]string> package represents paths and go-style path patterns to use as package roots.

output rules (optionally as output::...)

+output:artifacts[:code=],config= package outputs artifacts to different locations, depending on whether they're package-associated or not. +output:dir= package outputs each artifact to the given directory, regardless of if it's package-associated or not. +output:none package skips outputting anything. +output:stdout package outputs everything to standard-out, with no separation.

run controller-gen crd:crdVersions=v1 rbac:roleName=manager-role webhook paths=./... output:crd:artifacts:config=config/crd/bases -w to see all available markers, or controller-gen crd:crdVersions=v1 rbac:roleName=manager-role webhook paths=./... output:crd:artifacts:config=config/crd/bases -h for usage gmake: *** [Makefile:62: manifests] Error 1

MSG:

Error:****@v1.12.1: missing go.sum entry; to add it: go mod download cloud.google.com/go/compute

Usage: controller-gen [flags]

Examples:

Generate RBAC manifests and crds for all types under apis/,

    # outputting crds to /tmp/crds and everything else to stdout
    controller-gen rbac:roleName=<role name> crd paths=./apis/... output:crd:dir=/tmp/crds output:stdout

    # Generate deepcopy/runtime.Object implementations for a particular file
    controller-gen object paths=./apis/v1beta1/some_types.go

    # Generate OpenAPI v3 schemas for API packages and merge them into existing CRD manifests
    controller-gen schemapatch:manifests=./manifests output:dir=./manifests paths=./pkg/apis/...

    # Run all the generators for a given project
    controller-gen paths=./apis/...

    # Explain the markers for generating CRDs, and their arguments
    controller-gen crd -ww

Flags: -h, --detailed-help count print out more detailed help (up to -hhh for the most detailed output, or -hhhh for json output) --help print out usage and a summary of options --version show version -w, --which-markers count print out all markers available with the requested generators (up to -www for the most detailed output, or -wwww for json output)

Options generators +webhook package generates (partial) {Mutating,Validating}WebhookConfiguration objects. +schemapatch[:generateEmbeddedObjectMeta=],manifests=[,maxDescLen=] package patches existing CRDs with new schemata. +rbac:roleName= package generates ClusterRole objects.

+object[:headerFile=][,year=] package generates code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations. +crd[:allowDangerousTypes=][,crdVersions=<[]string>][,generateEmbeddedObjectMeta=][,ignoreUnexportedFields=][,maxDescLen=] package generates CustomResourceDefinition objects.

generic

+paths=<[]string> package represents paths and go-style path patterns to use as package roots.

output rules (optionally as output::...)

+output:artifacts[:code=],config= package outputs artifacts to different locations, depending on whether they're package-associated or not. +output:dir= package outputs each artifact to the given directory, regardless of if it's package-associated or not. +output:none package skips outputting anything. +output:stdout package outputs everything to standard-out, with no separation.

run controller-gen crd:crdVersions=v1 rbac:roleName=manager-role webhook paths=./... output:crd:artifacts:config=config/crd/bases -w to see all available markers, or controller-gen crd:crdVersions=v1 rbac:roleName=manager-role webhook paths=./... output:crd:artifacts:config=config/crd/bases -h for usage gmake: *** [Makefile:62: manifests] Error 1`

jfialax commented 1 year ago

Current workaround is to use "go mod tidy" before build.