Checkmarx / kics

Find security vulnerabilities, compliance issues, and infrastructure misconfigurations early in the development cycle of your infrastructure-as-code with KICS by Checkmarx.
https://kics.io
Apache License 2.0
2.04k stars 304 forks source link

errors #5923

Closed Acenl12 closed 1 year ago

Acenl12 commented 2 years ago

when running go install in console

package github.com/Checkmarx/kics/cmd/console
        imports github.com/Checkmarx/kics/internal/console
        imports github.com/Checkmarx/kics/pkg/engine/source
        imports github.com/open-policy-agent/opa/ast
        imports github.com/open-policy-agent/opa/capabilities: build constraints exclude all Go files in /root/go/pkg/mod/github.com/open-policy-agent/opa@v0.44.0/capabilities
/root/go/pkg/mod/github.com/open-policy-agent/opa@v0.44.0/loader/filter/filter.go:3:8: package io/fs is not in GOROOT (/usr/lib/go-1.15/src/io/fs)
root@B-007186602457:/home/guido/kics/cmd/console# go install
../../internal/console/kics.go:5:2: package embed is not in GOROOT (/usr/lib/go-1.15/src/embed)
package github.com/Checkmarx/kics/cmd/console
        imports github.com/Checkmarx/kics/internal/console
        imports github.com/Checkmarx/kics/pkg/engine/source
        imports github.com/open-policy-agent/opa/ast
        imports github.com/open-policy-agent/opa/capabilities: build constraints exclude all Go files in /root/go/pkg/mod/github.com/open-policy-agent/opa@v0.44.0/capabilities
/root/go/pkg/mod/github.com/open-policy-agent/opa@v0.44.0/loader/filter/filter.go:3:8: package io/fs is not in GOROOT (/usr/lib/go-1.15/src/io/fs)

PRETTY_NAME="Debian GNU/Linux 11 (bullseye)" NAME="Debian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=debian

cxMiguelSilva commented 1 year ago

Hi @guidovbrakel, In order to help you solve your issue can you please provide more information about all the steps you have taken in order to reproduce your problem on our side? What Go version are you using?

cxMiguelSilva commented 1 year ago

Hi @guidovbrakel, Can you provide any update regarding this issue?

rafaela-soares commented 1 year ago

Hello @guidovbrakel,

I think you will need to upgrade your GO version to 1.16 or higher since it seems that you are using 1.15

cxMiguelSilva commented 1 year ago

Hi @guidovbrakel, Can you provide any updates regarding this issue?

cxMiguelSilva commented 1 year ago

Issue closed due to lack of feedback from the user.