??♂️
なんじゃこりゃ!!
Vuls構築時に….
1 2 3 4 5 6 7 8 9 10 |
~/go/src/github.com/future-architect/vuls$ make install go get -u github.com/golang/dep/... dep ensure golint cache/bolt.go || exit; golint cache/bolt_test.go || exit; golint cache/db.go || exit; golint commands/configtest.go || exit; golint commands/discover.go || exit; golint commands/history.go || exit; golint commands/report.go || exit; golint commands/scan.go || exit; golint commands/tui.go || exit; golint commands/util.go || exit; golint commands/util_test.go || exit; golint config/color.go || exit; golint config/config.go || exit; golint config/config_test.go || exit; golint config/jsonloader.go || exit; golint config/loader.go || exit; golint config/tomlloader.go || exit; golint contrib/owasp-dependency-check/parser/parser.go || exit; golint main.go || exit; golint models/cvecontents.go || exit; golint models/cvecontents_test.go || exit; golint models/models.go || exit; golint models/models_test.go || exit; golint models/packages.go || exit; golint models/packages_test.go || exit; golint models/scanresults.go || exit; golint models/scanresults_test.go || exit; golint models/utils.go || exit; golint models/vulninfos.go || exit; golint models/vulninfos_test.go || exit; golint oval/alpine.go || exit; golint oval/debian.go || exit; golint oval/debian_test.go || exit; golint oval/oval.go || exit; golint oval/redhat.go || exit; golint oval/redhat_test.go || exit; golint oval/suse.go || exit; golint oval/util.go || exit; golint oval/util_test.go || exit; golint report/azureblob.go || exit; golint report/chatwork.go || exit; golint report/chatwork_test.go || exit; golint report/cve_client.go || exit; golint report/email.go || exit; golint report/email_test.go || exit; golint report/hipchat.go || exit; golint report/hipchat_test.go || exit; golint report/localfile.go || exit; golint report/report.go || exit; golint report/report_test.go || exit; golint report/s3.go || exit; golint report/slack.go || exit; golint report/slack_test.go || exit; golint report/stdout.go || exit; golint report/stride.go || exit; golint report/stride_test.go || exit; golint report/syslog.go || exit; golint report/syslog_test.go || exit; golint report/tui.go || exit; golint report/util.go || exit; golint report/util_test.go || exit; golint report/writer.go || exit; golint scan/alpine.go || exit; golint scan/alpine_test.go || exit; golint scan/base.go || exit; golint scan/base_test.go || exit; golint scan/debian.go || exit; golint scan/debian_test.go || exit; golint scan/executil.go || exit; golint scan/executil_test.go || exit; golint scan/freebsd.go || exit; golint scan/freebsd_test.go || exit; golint scan/pseudo.go || exit; golint scan/redhat.go || exit; golint scan/redhat_test.go || exit; golint scan/serverapi.go || exit; golint scan/serverapi_test.go || exit; golint scan/suse.go || exit; golint scan/suse_test.go || exit; golint scan/unknownDistro.go || exit; golint scan/utils.go || exit; golint scan/utils_test.go || exit; golint util/logutil.go || exit; golint util/util.go || exit; golint util/util_test.go || exit; # @-go get -v golang.org/x/tools/cmd/vet echo ./. ./cache ./commands ./config ./models ./oval ./report ./scan ./util | xargs go vet || exit; gofmt -s -d cache/bolt.go; gofmt -s -d cache/bolt_test.go; gofmt -s -d cache/db.go; gofmt -s -d commands/configtest.go; gofmt -s -d commands/discover.go; gofmt -s -d commands/history.go; gofmt -s -d commands/report.go; gofmt -s -d commands/scan.go; gofmt -s -d commands/tui.go; gofmt -s -d commands/util.go; gofmt -s -d commands/util_test.go; gofmt -s -d config/color.go; gofmt -s -d config/config.go; gofmt -s -d config/config_test.go; gofmt -s -d config/jsonloader.go; gofmt -s -d config/loader.go; gofmt -s -d config/tomlloader.go; gofmt -s -d contrib/owasp-dependency-check/parser/parser.go; gofmt -s -d main.go; gofmt -s -d models/cvecontents.go; gofmt -s -d models/cvecontents_test.go; gofmt -s -d models/models.go; gofmt -s -d models/models_test.go; gofmt -s -d models/packages.go; gofmt -s -d models/packages_test.go; gofmt -s -d models/scanresults.go; gofmt -s -d models/scanresults_test.go; gofmt -s -d models/utils.go; gofmt -s -d models/vulninfos.go; gofmt -s -d models/vulninfos_test.go; gofmt -s -d oval/alpine.go; gofmt -s -d oval/debian.go; gofmt -s -d oval/debian_test.go; gofmt -s -d oval/oval.go; gofmt -s -d oval/redhat.go; gofmt -s -d oval/redhat_test.go; gofmt -s -d oval/suse.go; gofmt -s -d oval/util.go; gofmt -s -d oval/util_test.go; gofmt -s -d report/azureblob.go; gofmt -s -d report/chatwork.go; gofmt -s -d report/chatwork_test.go; gofmt -s -d report/cve_client.go; gofmt -s -d report/email.go; gofmt -s -d report/email_test.go; gofmt -s -d report/hipchat.go; gofmt -s -d report/hipchat_test.go; gofmt -s -d report/localfile.go; gofmt -s -d report/report.go; gofmt -s -d report/report_test.go; gofmt -s -d report/s3.go; gofmt -s -d report/slack.go; gofmt -s -d report/slack_test.go; gofmt -s -d report/stdout.go; gofmt -s -d report/stride.go; gofmt -s -d report/stride_test.go; gofmt -s -d report/syslog.go; gofmt -s -d report/syslog_test.go; gofmt -s -d report/tui.go; gofmt -s -d report/util.go; gofmt -s -d report/util_test.go; gofmt -s -d report/writer.go; gofmt -s -d scan/alpine.go; gofmt -s -d scan/alpine_test.go; gofmt -s -d scan/base.go; gofmt -s -d scan/base_test.go; gofmt -s -d scan/debian.go; gofmt -s -d scan/debian_test.go; gofmt -s -d scan/executil.go; gofmt -s -d scan/executil_test.go; gofmt -s -d scan/freebsd.go; gofmt -s -d scan/freebsd_test.go; gofmt -s -d scan/pseudo.go; gofmt -s -d scan/redhat.go; gofmt -s -d scan/redhat_test.go; gofmt -s -d scan/serverapi.go; gofmt -s -d scan/serverapi_test.go; gofmt -s -d scan/suse.go; gofmt -s -d scan/suse_test.go; gofmt -s -d scan/unknownDistro.go; gofmt -s -d scan/utils.go; gofmt -s -d scan/utils_test.go; gofmt -s -d util/logutil.go; gofmt -s -d util/util.go; gofmt -s -d util/util_test.go; go install -ldflags "-X 'main.version=v0.4.2' -X 'main.revision=cb1aec4'" /usr/local/go/pkg/tool/linux_amd64/link: signal: killed make: *** [install] エラー 1 |
こんなエラーは見たことないぞ!!!
とりあえずググる。
■go build signal: killed #32
https://github.com/beego/wetalk/issues/32
これか!!!!!!
1 2 3 4 5 |
~/go/src/github.com/future-architect/vuls$ free -m total used free shared buffers cached Mem: 489 204 284 0 8 36 -/+ buffers/cache: 159 329 Swap: 0 0 0 |
■Scale-up
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
$ free -m total used free shared buffers cached Mem: 987 210 776 0 11 140 -/+ buffers/cache: 58 929 Swap: 0 0 0 ~/go/src/github.com/future-architect/vuls$ make install go get -u github.com/golang/dep/... dep ensure golint cache/bolt.go || exit; golint cache/bolt_test.go || exit; golint cache/db.go || exit; golint commands/configtest.go || exit; golint commands/discover.go || exit; golint commands/history.go || exit; golint commands/report.go || exit; golint commands/scan.go || exit; golint commands/tui.go || exit; golint commands/util.go || exit; golint commands/util_test.go || exit; golint config/color.go || exit; golint config/config.go || exit; golint config/config_test.go || exit; golint config/jsonloader.go || exit; golint config/loader.go || exit; golint config/tomlloader.go || exit; golint contrib/owasp-dependency-check/parser/parser.go || exit; golint main.go || exit; golint models/cvecontents.go || exit; golint models/cvecontents_test.go || exit; golint models/models.go || exit; golint models/models_test.go || exit; golint models/packages.go || exit; golint models/packages_test.go || exit; golint models/scanresults.go || exit; golint models/scanresults_test.go || exit; golint models/utils.go || exit; golint models/vulninfos.go || exit; golint models/vulninfos_test.go || exit; golint oval/alpine.go || exit; golint oval/debian.go || exit; golint oval/debian_test.go || exit; golint oval/oval.go || exit; golint oval/redhat.go || exit; golint oval/redhat_test.go || exit; golint oval/suse.go || exit; golint oval/util.go || exit; golint oval/util_test.go || exit; golint report/azureblob.go || exit; golint report/chatwork.go || exit; golint report/chatwork_test.go || exit; golint report/cve_client.go || exit; golint report/email.go || exit; golint report/email_test.go || exit; golint report/hipchat.go || exit; golint report/hipchat_test.go || exit; golint report/localfile.go || exit; golint report/report.go || exit; golint report/report_test.go || exit; golint report/s3.go || exit; golint report/slack.go || exit; golint report/slack_test.go || exit; golint report/stdout.go || exit; golint report/stride.go || exit; golint report/stride_test.go || exit; golint report/syslog.go || exit; golint report/syslog_test.go || exit; golint report/tui.go || exit; golint report/util.go || exit; golint report/util_test.go || exit; golint report/writer.go || exit; golint scan/alpine.go || exit; golint scan/alpine_test.go || exit; golint scan/base.go || exit; golint scan/base_test.go || exit; golint scan/debian.go || exit; golint scan/debian_test.go || exit; golint scan/executil.go || exit; golint scan/executil_test.go || exit; golint scan/freebsd.go || exit; golint scan/freebsd_test.go || exit; golint scan/pseudo.go || exit; golint scan/redhat.go || exit; golint scan/redhat_test.go || exit; golint scan/serverapi.go || exit; golint scan/serverapi_test.go || exit; golint scan/suse.go || exit; golint scan/suse_test.go || exit; golint scan/unknownDistro.go || exit; golint scan/utils.go || exit; golint scan/utils_test.go || exit; golint util/logutil.go || exit; golint util/util.go || exit; golint util/util_test.go || exit; # @-go get -v golang.org/x/tools/cmd/vet echo ./. ./cache ./commands ./config ./models ./oval ./report ./scan ./util | xargs go vet || exit; gofmt -s -d cache/bolt.go; gofmt -s -d cache/bolt_test.go; gofmt -s -d cache/db.go; gofmt -s -d commands/configtest.go; gofmt -s -d commands/discover.go; gofmt -s -d commands/history.go; gofmt -s -d commands/report.go; gofmt -s -d commands/scan.go; gofmt -s -d commands/tui.go; gofmt -s -d commands/util.go; gofmt -s -d commands/util_test.go; gofmt -s -d config/color.go; gofmt -s -d config/config.go; gofmt -s -d config/config_test.go; gofmt -s -d config/jsonloader.go; gofmt -s -d config/loader.go; gofmt -s -d config/tomlloader.go; gofmt -s -d contrib/owasp-dependency-check/parser/parser.go; gofmt -s -d main.go; gofmt -s -d models/cvecontents.go; gofmt -s -d models/cvecontents_test.go; gofmt -s -d models/models.go; gofmt -s -d models/models_test.go; gofmt -s -d models/packages.go; gofmt -s -d models/packages_test.go; gofmt -s -d models/scanresults.go; gofmt -s -d models/scanresults_test.go; gofmt -s -d models/utils.go; gofmt -s -d models/vulninfos.go; gofmt -s -d models/vulninfos_test.go; gofmt -s -d oval/alpine.go; gofmt -s -d oval/debian.go; gofmt -s -d oval/debian_test.go; gofmt -s -d oval/oval.go; gofmt -s -d oval/redhat.go; gofmt -s -d oval/redhat_test.go; gofmt -s -d oval/suse.go; gofmt -s -d oval/util.go; gofmt -s -d oval/util_test.go; gofmt -s -d report/azureblob.go; gofmt -s -d report/chatwork.go; gofmt -s -d report/chatwork_test.go; gofmt -s -d report/cve_client.go; gofmt -s -d report/email.go; gofmt -s -d report/email_test.go; gofmt -s -d report/hipchat.go; gofmt -s -d report/hipchat_test.go; gofmt -s -d report/localfile.go; gofmt -s -d report/report.go; gofmt -s -d report/report_test.go; gofmt -s -d report/s3.go; gofmt -s -d report/slack.go; gofmt -s -d report/slack_test.go; gofmt -s -d report/stdout.go; gofmt -s -d report/stride.go; gofmt -s -d report/stride_test.go; gofmt -s -d report/syslog.go; gofmt -s -d report/syslog_test.go; gofmt -s -d report/tui.go; gofmt -s -d report/util.go; gofmt -s -d report/util_test.go; gofmt -s -d report/writer.go; gofmt -s -d scan/alpine.go; gofmt -s -d scan/alpine_test.go; gofmt -s -d scan/base.go; gofmt -s -d scan/base_test.go; gofmt -s -d scan/debian.go; gofmt -s -d scan/debian_test.go; gofmt -s -d scan/executil.go; gofmt -s -d scan/executil_test.go; gofmt -s -d scan/freebsd.go; gofmt -s -d scan/freebsd_test.go; gofmt -s -d scan/pseudo.go; gofmt -s -d scan/redhat.go; gofmt -s -d scan/redhat_test.go; gofmt -s -d scan/serverapi.go; gofmt -s -d scan/serverapi_test.go; gofmt -s -d scan/suse.go; gofmt -s -d scan/suse_test.go; gofmt -s -d scan/unknownDistro.go; gofmt -s -d scan/utils.go; gofmt -s -d scan/utils_test.go; gofmt -s -d util/logutil.go; gofmt -s -d util/util.go; gofmt -s -d util/util_test.go; go install -ldflags "-X 'main.version=v0.4.2' -X 'main.revision=cb1aec4'" |
■まとめ
Vuls構築の歳は必ずメモリー1GB以上で!!!!w
0件のコメント