Do you want to work on this issue?
You can request for a bounty in order to promote it!
Run command "vuls flags -v" cannot get vuls version #1333
wangxiaorou92 posted onGitHub
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 [<subcommand>]:
[root@localhost ~]# echo $? 2With an argument, print all flags of <subcommand>. Else, print a description of all known top-level flags. (The basic help information only discusses the most generally important top-level flags.)
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/amd64Go 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: