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

Run command "vuls flags -v" cannot get vuls version #1333

Open
wangxiaorou92 opened this issue Nov 17, 2021 · 0 comments
Open

Run command "vuls flags -v" cannot get vuls version #1333

wangxiaorou92 opened this issue Nov 17, 2021 · 0 comments
Assignees
Labels

Comments

@wangxiaorou92
Copy link

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

Query vuls version

What did you expect to happen?

Run command "vuls flags -v" can get vuls version

What happened instead?

  • Current Output
    [root@localhost ~]# vuls flags
    -v Show version
    [root@localhost ~]# echo $?
    0
    [root@localhost ~]# vuls flags -v
    flag provided but not defined: -v
    flags []:
    With an argument, print all flags of . Else,
    print a description of all known top-level flags. (The basic
    help information only discusses the most generally important
    top-level flags.)
    [root@localhost ~]# echo $?
    2

Please re-run the command using -debug and provide the output below.

Steps to reproduce the behaviour

vuls flags -v

Configuration (MUST fill this out):

  • Go version (go version):
    [root@localhost ~]# go version
    go version go1.16 linux/amd64

  • Go environment (go env):
    [root@localhost ~]# go env
    GO111MODULE=""
    GOARCH="amd64"
    GOBIN=""
    GOCACHE="/root/.cache/go-build"
    GOENV="/root/.config/go/env"
    GOEXE=""
    GOFLAGS=""
    GOHOSTARCH="amd64"
    GOHOSTOS="linux"
    GOINSECURE=""
    GOMODCACHE="/root/go/pkg/mod"
    GONOPROXY=".gitlab.com,.gitee.com"
    GONOSUMDB=".gitlab.com,.gitee.com"
    GOOS="linux"
    GOPATH="/root/go"
    GOPRIVATE=".gitlab.com,.gitee.com"
    GOPROXY="https://goproxy.io"
    GOROOT="/usr/local/go"
    GOSUMDB="off"
    GOTMPDIR=""
    GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
    GOVCS=""
    GOVERSION="go1.16"
    GCCGO="gccgo"
    AR="ar"
    CC="gcc"
    CXX="g++"
    CGO_ENABLED="1"
    GOMOD="/dev/null"
    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-build2753185754=/tmp/go-build -gno-record-gcc-switches"

  • Vuls environment:

Hash : ____

To check the commit hash of HEAD
$ vuls -v
[root@localhost ~]# vuls -v
vuls-v0.18.1-build-20211117_090336_ffdb789

or

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

[root@localhost vuls]# git rev-parse --short HEAD
ffdb789

  • config.toml:

  • command:

@Nikkely Nikkely self-assigned this Feb 7, 2022
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

2 participants