go-cve-dictionary
go-cve-dictionary copied to clipboard
chore(modUpdate): updated modules
What did you implement:
Upgraded modules which go-cve-dictionary depends on
$ rm go.sum go.mod
$ go mod init
go: creating new go.mod: module github.com/tttfrfr2/go-cve-dictionary
go: to add module requirements and sums:
go mod tidy
$ go mod tidy
go: finding module for package github.com/mitchellh/go-homedir
go: finding module for package github.com/spf13/viper
go: finding module for package github.com/spf13/cobra
go: finding module for package github.com/vulsio/go-cve-dictionary/commands
go: finding module for package github.com/vulsio/go-cve-dictionary/config
go: finding module for package github.com/vulsio/go-cve-dictionary/db
go: finding module for package github.com/vulsio/go-cve-dictionary/log
go: finding module for package github.com/vulsio/go-cve-dictionary/models
go: finding module for package github.com/vulsio/go-cve-dictionary/server
go: finding module for package golang.org/x/xerrors
go: finding module for package github.com/cheggaaa/pb/v3
go: finding module for package github.com/go-redis/redis/v8
go: finding module for package github.com/hashicorp/go-version
go: finding module for package github.com/knqyf263/go-cpe/common
go: finding module for package github.com/knqyf263/go-cpe/matching
go: finding module for package github.com/knqyf263/go-cpe/naming
go: finding module for package github.com/knqyf263/go-rpm-version
go: finding module for package github.com/mattn/go-sqlite3
go: finding module for package github.com/vulsio/go-cve-dictionary/fetcher/jvn
go: finding module for package github.com/vulsio/go-cve-dictionary/fetcher/nvd
go: finding module for package gorm.io/driver/mysql
go: finding module for package gorm.io/driver/postgres
go: finding module for package gorm.io/driver/sqlite
go: finding module for package gorm.io/gorm
go: finding module for package gorm.io/gorm/logger
go: finding module for package github.com/cenkalti/backoff
go: finding module for package github.com/PuerkitoBio/goquery
go: finding module for package github.com/vulsio/go-cve-dictionary/fetcher
go: finding module for package github.com/vulsio/go-cve-dictionary/util
go: finding module for package github.com/k0kubun/pp
go: finding module for package github.com/inconshreveable/log15
go: finding module for package github.com/labstack/echo
go: finding module for package github.com/labstack/echo/middleware
go: found github.com/vulsio/go-cve-dictionary/commands in github.com/vulsio/go-cve-dictionary v0.9.0
go: found github.com/mitchellh/go-homedir in github.com/mitchellh/go-homedir v1.1.0
go: found github.com/spf13/cobra in github.com/spf13/cobra v1.4.0
go: found github.com/spf13/viper in github.com/spf13/viper v1.11.0
go: found github.com/vulsio/go-cve-dictionary/config in github.com/vulsio/go-cve-dictionary v0.9.0
go: found github.com/vulsio/go-cve-dictionary/db in github.com/vulsio/go-cve-dictionary v0.9.0
go: found github.com/vulsio/go-cve-dictionary/log in github.com/vulsio/go-cve-dictionary v0.9.0
go: found github.com/vulsio/go-cve-dictionary/models in github.com/vulsio/go-cve-dictionary v0.9.0
go: found github.com/vulsio/go-cve-dictionary/server in github.com/vulsio/go-cve-dictionary v0.9.0
go: found golang.org/x/xerrors in golang.org/x/xerrors v0.0.0-20220411194840-2f41105eb62f
go: found github.com/cheggaaa/pb/v3 in github.com/cheggaaa/pb/v3 v3.0.8
go: found github.com/go-redis/redis/v8 in github.com/go-redis/redis/v8 v8.11.5
go: found github.com/hashicorp/go-version in github.com/hashicorp/go-version v1.4.0
go: found github.com/knqyf263/go-cpe/common in github.com/knqyf263/go-cpe v0.0.0-20201213041631-54f6ab28673f
go: found github.com/knqyf263/go-cpe/matching in github.com/knqyf263/go-cpe v0.0.0-20201213041631-54f6ab28673f
go: found github.com/knqyf263/go-cpe/naming in github.com/knqyf263/go-cpe v0.0.0-20201213041631-54f6ab28673f
go: found github.com/knqyf263/go-rpm-version in github.com/knqyf263/go-rpm-version v0.0.0-20170716094938-74609b86c936
go: found github.com/mattn/go-sqlite3 in github.com/mattn/go-sqlite3 v1.14.12
go: found github.com/vulsio/go-cve-dictionary/fetcher/jvn in github.com/vulsio/go-cve-dictionary v0.9.0
go: found github.com/vulsio/go-cve-dictionary/fetcher/nvd in github.com/vulsio/go-cve-dictionary v0.9.0
go: found gorm.io/driver/mysql in gorm.io/driver/mysql v1.3.3
go: found gorm.io/driver/postgres in gorm.io/driver/postgres v1.3.5
go: found gorm.io/driver/sqlite in gorm.io/driver/sqlite v1.3.2
go: found gorm.io/gorm in gorm.io/gorm v1.23.5
go: found gorm.io/gorm/logger in gorm.io/gorm v1.23.5
go: found github.com/cenkalti/backoff in github.com/cenkalti/backoff v2.2.1+incompatible
go: found github.com/PuerkitoBio/goquery in github.com/PuerkitoBio/goquery v1.8.0
go: found github.com/vulsio/go-cve-dictionary/fetcher in github.com/vulsio/go-cve-dictionary v0.9.0
go: found github.com/vulsio/go-cve-dictionary/util in github.com/vulsio/go-cve-dictionary v0.9.0
go: found github.com/k0kubun/pp in github.com/k0kubun/pp v3.0.1+incompatible
go: found github.com/inconshreveable/log15 in github.com/inconshreveable/log15 v0.0.0-20201112154412-8562bdadbbac
go: found github.com/labstack/echo in github.com/labstack/echo v3.3.10+incompatible
go: found github.com/labstack/echo/middleware in github.com/labstack/echo v3.3.10+incompatible
Type of change
Please delete options that are not relevant.
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] This change requires a documentation update
How Has This Been Tested?
run go-cve-dictionary after 'make install'
$ make install
GO111MODULE=on go install -ldflags "-X 'github.com/vulsio/go-cve-dictionary/config.Version=v0.7.0' -X 'github.com/vulsio/go-cve-dictionary/config.Revision=842c8c4'"
$ go-cve-dictionary
GO CVE Dictionary
Usage:
go-cve-dictionary [command]
Available Commands:
completion Generate the autocompletion script for the specified shell
fetch Fetch Vulnerability dictionary
help Help about any command
server Start CVE dictionary HTTP Server
version Show version
Flags:
--config string config file (default is $HOME/.go-cve-dictionary.yaml)
--dbpath string /path/to/sqlite3 or SQL connection string (default "/home/otuki/go/src/github.com/tttfrfr2/go-cve-dictionary/cve.sqlite3")
--dbtype string Database type to store data in (sqlite3, mysql, postgres or redis supported) (default "sqlite3")
--debug debug mode (default: false)
--debug-sql SQL debug mode
-h, --help help for go-cve-dictionary
--http-proxy string http://proxy-url:port (default: empty)
--log-dir string /path/to/log (default "/var/log/go-cve-dictionary")
--log-json output log as JSON
--log-to-file output log to file
Use "go-cve-dictionary [command] --help" for more information about a command.
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.
Checklist:
You don't have to satisfy all of the following.
- [ ] Write tests
- [ ] Write documentation
- [ ] Check that there aren't other open pull requests for the same issue/feature
- [x] Format your source code by
make fmt - [x] Pass the test by
make test - [ ] Provide verification config / commands
- [x] Enable "Allow edits from maintainers" for this PR
- [ ] Update the messages below
Is this ready for review?: Yes