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

Unable to upgrade vuls #1529

Closed
Mefix-web opened this issue Sep 8, 2022 · 0 comments
Closed

Unable to upgrade vuls #1529

Mefix-web opened this issue Sep 8, 2022 · 0 comments
Labels

Comments

@Mefix-web
Copy link

What did you do? (required. The issue will be closed when not provided.)

$ cd $GOPATH/src/github.com/future-architect/vuls
$ git pull
$ rm -r vendor
$ make install

What did you expect to happen?

Upgrade vuls application so it would be compatible with Ubuntu 22.04

What happened instead?

Received an error that package debug/buildinfo is not in GOROOT

  • Current Output

Please re-run the command using -debug and provide the output below.
:~/go/src/github.com/future-architect/vuls# make install --debug
GNU Make 4.2.1
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
Updating makefiles....
Updating goal targets....
File 'install' does not exist.
Must remake target 'install'.
GO111MODULE=on go install -ldflags "-X 'github.com/future-architect/vuls/config.Version=v0.20.3' -X 'github.com/future-architect/vuls/config.Revision=build-20220908_132826_947fbbb'" ./cmd/vuls
/root/go/pkg/mod/github.com/aquasecurity/go-dep-parser@v0.0.0-20220819065825-29e1e04fb7ae/pkg/golang/binary/parse.go:4:2: package debug/buildinfo is not in GOROOT (/usr/local/go/src/debug/buildinfo)
make: *** [GNUmakefile:32: install] Error 1

Steps to reproduce the behaviour

Configuration (MUST fill this out):

  • Go version (go version):
    go version go1.17.2 linux/amd64

  • Go environment (go env):
    GO111MODULE=""
    GOARCH="amd64"
    GOBIN=""
    GOCACHE="/root/.cache/go-build"
    GOENV="/root/.config/go/env"
    GOEXE=""
    GOEXPERIMENT=""
    GOFLAGS=""
    GOHOSTARCH="amd64"
    GOHOSTOS="linux"
    GOINSECURE=""
    GOMODCACHE="/root/go/pkg/mod"
    GONOPROXY=""
    GONOSUMDB=""
    GOOS="linux"
    GOPATH="/root/go"
    GOPRIVATE=""
    GOPROXY="https://proxy.golang.org,direct"
    GOROOT="/usr/local/go"
    GOSUMDB="sum.golang.org"
    GOTMPDIR=""
    GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
    GOVCS=""
    GOVERSION="go1.17.2"
    GCCGO="gccgo"
    AR="ar"
    CC="gcc"
    CXX="g++"
    CGO_ENABLED="1"
    GOMOD="/root/go/src/github.com/future-architect/vuls/go.mod"
    CGO_CFLAGS="-g -O2"
    CGO_CPPFLAGS=""
    CGO_CXXFLAGS="-g -O2"
    CGO_FFLAGS="-g -O2"
    CGO_LDFLAGS="-g -O2"
    PKG_CONFIG="pkg-config"
    GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build946359625=/tmp/go-build -gno-record-gcc-switches"

  • Vuls environment:

Hash : ____

To check the commit hash of HEAD
$ vuls -v
vuls-v0.18.1-build-20211026_094644_321dae3
or

$ cd $GOPATH/src/github.com/future-architect/vuls
$ git rev-parse --short HEAD

  • config.toml:

  • command:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant