Comments (8)
INFO[2020-07-14T10:02:55+08:00][logrus/entry.go:313] cache cover exist: github.com/panjf2000/ants/cache_373732376636353838396563
INFO[2020-07-14T10:02:55+08:00][logrus/entry.go:313] cache cover exist: github.com/pierrec/lz4/cache_373232643464303736396661
INFO[2020-07-14T10:02:56+08:00][logrus/entry.go:313] cache cover exist: golang.org/x/net/cache_343664633233633838353763
i found id is same , but when i remove goping id is not same .
from goc.
Thanks @wzh521
http_cover_apis_auto_generated.go
file is auto generated by goc, and basically is hidden for users. I am guessing maybe you are trying the goc cover
command? if yes, please be careful, it will contaminate your code.
For your question, you can try to clean your workspace first and use go build
to make sure the project can be compiled successfully. then use goc build .
to try it again.
if problem persists, please turn on --debug
flag, and provide the full logs for us.
from goc.
Thanks @ CarlJi
the proplem stil exists , i don't konw how to solve
09:33:16 09:33:16 time="2020-07-15T09:33:15+08:00" level=info msg="Working directory: /home/goProjects/src/Pick/pick" file="[logrus/entry.go:313]"
09:33:16 09:33:16 time="2020-07-15T09:33:15+08:00" level=info msg="go list cmd is: [/bin/bash -c go list -json ./...]" file="[logrus/entry.go:313]"
09:33:16 09:33:16 time="2020-07-15T09:33:15+08:00" level=info msg="Tmp project generated in: /tmp/goc-build-ea6aef3d380f" file="[logrus/entry.go:313]"
09:33:16 09:33:16 time="2020-07-15T09:33:15+08:00" level=info msg="mod project? false" file="[logrus/entry.go:313]"
09:33:17 09:33:17 time="2020-07-15T09:33:16+08:00" level=info msg="New workingdir in tmp directory in: /tmp/goc-build-ea6aef3d380f/src/Pick/pick" file="[logrus/entry.go:313]"
09:33:17 09:33:17 time="2020-07-15T09:33:16+08:00" level=info msg="New GOPATH: /tmp/goc-build-ea6aef3d380f:/home/goProjects" file="[logrus/entry.go:313]"
09:33:17 09:33:17 time="2020-07-15T09:33:16+08:00" level=info msg="go list cmd is: [/bin/bash -c go list -json ./...]" file="[logrus/entry.go:313]"
09:33:17 09:33:17 time="2020-07-15T09:33:17+08:00" level=info msg="handle package: github.com/valyala/fasthttp/examples/fileserver" file="[logrus/entry.go:313]"
09:33:18 09:33:18 time="2020-07-15T09:33:17+08:00" level=info msg="handle package: github.com/Shopify/sarama/examples/http_server" file="[logrus/entry.go:313]"
09:33:22 09:33:22 time="2020-07-15T09:33:21+08:00" level=info msg="handle package: github.com/golang/snappy/cmd/snappytool" file="[logrus/entry.go:313]"
09:33:22 09:33:22 time="2020-07-15T09:33:21+08:00" level=info msg="handle package: github.com/pierrec/lz4/cmd/lz4c" file="[logrus/entry.go:313]"
09:33:22 09:33:22 time="2020-07-15T09:33:21+08:00" level=info msg="cache cover exist: github.com/pierrec/lz4/cache_373232643464303736396661" file="[logrus/entry.go:313]"
09:33:22 09:33:22 time="2020-07-15T09:33:21+08:00" level=info msg="handle package: github.com/mailru/easyjson/easyjson" file="[logrus/entry.go:313]"
09:33:22 09:33:22 time="2020-07-15T09:33:21+08:00" level=info msg="handle package: github.com/rcrowley/go-metrics/cmd/metrics-bench" file="[logrus/entry.go:313]"
09:33:22 09:33:22 time="2020-07-15T09:33:21+08:00" level=info msg="handle package: github.com/rcrowley/go-metrics/cmd/never-read" file="[logrus/entry.go:313]"
09:33:22 09:33:22 time="2020-07-15T09:33:21+08:00" level=info msg="handle package: github.com/yuin/gopher-lua/cmd/glua" file="[logrus/entry.go:313]"
09:33:22 09:33:22 time="2020-07-15T09:33:22+08:00" level=info msg="handle package: github.com/Shopify/sarama/tools/kafka-console-consumer" file="[logrus/entry.go:313]"
09:33:22 09:33:22 time="2020-07-15T09:33:22+08:00" level=info msg="cache cover exist: github.com/klauspost/compress/zstd/cache_323139396362303938666562" file="[logrus/entry.go:313]"
09:33:22 09:33:22 time="2020-07-15T09:33:22+08:00" level=info msg="cache cover exist: github.com/pierrec/lz4/cache_373232643464303736396661" file="[logrus/entry.go:313]"
09:33:22 09:33:22 time="2020-07-15T09:33:22+08:00" level=info msg="cache cover exist: golang.org/x/net/cache_343664633233633838353763" file="[logrus/entry.go:313]"
09:33:22 09:33:22 time="2020-07-15T09:33:22+08:00" level=info msg="handle package: github.com/Shopify/sarama/tools/kafka-console-partitionconsumer" file="[logrus/entry.go:313]"
09:33:22 09:33:22 time="2020-07-15T09:33:22+08:00" level=info msg="cache cover exist: github.com/klauspost/compress/zstd/cache_323139396362303938666562" file="[logrus/entry.go:313]"
09:33:22 09:33:22 time="2020-07-15T09:33:22+08:00" level=info msg="cache cover exist: github.com/pierrec/lz4/cache_373232643464303736396661" file="[logrus/entry.go:313]"
09:33:22 09:33:22 time="2020-07-15T09:33:22+08:00" level=info msg="cache cover exist: golang.org/x/net/cache_343664633233633838353763" file="[logrus/entry.go:313]"
09:33:22 09:33:22 time="2020-07-15T09:33:22+08:00" level=info msg="handle package: github.com/valyala/fasthttp/examples/helloworldserver" file="[logrus/entry.go:313]"
09:33:22 09:33:22 time="2020-07-15T09:33:22+08:00" level=info msg="handle package: github.com/rcrowley/go-metrics/cmd/metrics-example" file="[logrus/entry.go:313]"
09:33:22 09:33:22 time="2020-07-15T09:33:22+08:00" level=info msg="handle package: Pick/pick/devicemanager/resource/functionPluginFile" file="[logrus/entry.go:313]"
09:33:22 09:33:22 time="2020-07-15T09:33:22+08:00" level=info msg="handle package: github.com/Shopify/sarama/tools/kafka-producer-performance" file="[logrus/entry.go:313]"
09:33:22 09:33:22 time="2020-07-15T09:33:22+08:00" level=info msg="cache cover exist: github.com/klauspost/compress/zstd/cache_323139396362303938666562" file="[logrus/entry.go:313]"
09:33:22 09:33:22 time="2020-07-15T09:33:22+08:00" level=info msg="cache cover exist: github.com/pierrec/lz4/cache_373232643464303736396661" file="[logrus/entry.go:313]"
09:33:22 09:33:22 time="2020-07-15T09:33:22+08:00" level=info msg="cache cover exist: golang.org/x/net/cache_343664633233633838353763" file="[logrus/entry.go:313]"
09:33:22 09:33:22 time="2020-07-15T09:33:22+08:00" level=info msg="handle package: github.com/soniah/gosnmp/examples" file="[logrus/entry.go:313]"
09:33:41 09:33:41 time="2020-07-15T09:33:39+08:00" level=info msg="handle package: github.com/shiena/ansicolor/ansicolor" file="[logrus/entry.go:313]"
09:33:41 09:33:41 time="2020-07-15T09:33:39+08:00" level=info msg="handle package: Pick/pick" file="[logrus/entry.go:313]"
09:33:42 09:33:42 time="2020-07-15T09:33:41+08:00" level=info msg="cache cover exist: github.com/klauspost/compress/zstd/cache_323139396362303938666562" file="[logrus/entry.go:313]"
09:33:42 09:33:42 time="2020-07-15T09:33:42+08:00" level=info msg="cache cover exist: github.com/pierrec/lz4/cache_373232643464303736396661" file="[logrus/entry.go:313]"
09:33:43 09:33:43 time="2020-07-15T09:33:43+08:00" level=info msg="cache cover exist: golang.org/x/net/cache_343664633233633838353763" file="[logrus/entry.go:313]"
09:33:44 09:33:44 time="2020-07-15T09:33:44+08:00" level=info msg="handle package: github.com/Shopify/sarama/tools/kafka-console-producer" file="[logrus/entry.go:313]"
09:33:44 09:33:44 time="2020-07-15T09:33:44+08:00" level=info msg="cache cover exist: github.com/klauspost/compress/zstd/cache_323139396362303938666562" file="[logrus/entry.go:313]"
09:33:44 09:33:44 time="2020-07-15T09:33:44+08:00" level=info msg="cache cover exist: github.com/pierrec/lz4/cache_373232643464303736396661" file="[logrus/entry.go:313]"
09:33:44 09:33:44 time="2020-07-15T09:33:44+08:00" level=info msg="cache cover exist: golang.org/x/net/cache_343664633233633838353763" file="[logrus/entry.go:313]"
09:33:44 09:33:44 time="2020-07-15T09:33:44+08:00" level=info msg="handle package: github.com/valyala/fasthttp/examples/multidomain" file="[logrus/entry.go:313]"
09:33:44 09:33:44 time="2020-07-15T09:33:44+08:00" level=info msg="handle package: github.com/Shopify/sarama/examples/sasl_scram_client" file="[logrus/entry.go:313]"
09:33:44 09:33:44 time="2020-07-15T09:33:44+08:00" level=info msg="cache cover exist: github.com/klauspost/compress/zstd/cache_323139396362303938666562" file="[logrus/entry.go:313]"
09:33:44 09:33:44 time="2020-07-15T09:33:44+08:00" level=info msg="cache cover exist: github.com/pierrec/lz4/cache_373232643464303736396661" file="[logrus/entry.go:313]"
09:33:44 09:33:44 time="2020-07-15T09:33:44+08:00" level=info msg="cache cover exist: golang.org/x/net/cache_343664633233633838353763" file="[logrus/entry.go:313]"
09:33:44 09:33:44 time="2020-07-15T09:33:44+08:00" level=info msg="handle package: github.com/Shopify/sarama/examples/consumergroup" file="[logrus/entry.go:313]"
09:33:44 09:33:44 time="2020-07-15T09:33:44+08:00" level=info msg="cache cover exist: github.com/klauspost/compress/zstd/cache_323139396362303938666562" file="[logrus/entry.go:313]"
09:33:44 09:33:44 time="2020-07-15T09:33:44+08:00" level=info msg="cache cover exist: github.com/pierrec/lz4/cache_373232643464303736396661" file="[logrus/entry.go:313]"
09:33:44 09:33:44 time="2020-07-15T09:33:44+08:00" level=info msg="cache cover exist: golang.org/x/net/cache_343664633233633838353763" file="[logrus/entry.go:313]"
09:33:44 09:33:44 time="2020-07-15T09:33:44+08:00" level=info msg="handle package: github.com/panjf2000/ants/examples" file="[logrus/entry.go:313]"
09:33:44 09:33:44 time="2020-07-15T09:33:44+08:00" level=info msg="cache cover exist: github.com/panjf2000/ants/cache_373732376636353838396563" file="[logrus/entry.go:313]"
09:33:44 09:33:44 time="2020-07-15T09:33:44+08:00" level=info msg="Go building in temp..." file="[logrus/entry.go:358]"
09:33:44 09:33:44 time="2020-07-15T09:33:44+08:00" level=info msg="go build cmd is: [/bin/bash -c go build -o /home/goProjects/src/Pick/pick/pick .]" file="[logrus/entry.go:313]"
09:33:53 09:33:53 # Pick/pick
09:33:53 09:33:53 ./http_cover_apis_auto_generated.go:2377:89: undefined: cache_343664633233633838353763.GoCacheCover_0_34636232323162626631
09:33:53 09:33:53 ./http_cover_apis_auto_generated.go:2379:88: undefined: cache_343664633233633838353763.GoCacheCover_1_34636232323162626631
09:33:53 09:33:53 ./http_cover_apis_auto_generated.go:4448:17: undefined: cache_343664633233633838353763.GoCacheCover_0_34636232323162626631
09:33:53 09:33:53 ./http_cover_apis_auto_generated.go:4450:17: undefined: cache_343664633233633838353763.GoCacheCover_1_34636232323162626631
09:33:53 09:33:53 time="2020-07-15T09:33:52+08:00" level=error msg="go build failed. The error is: exit status 2" file="[logrus/entry.go:313]"
09:33:53 09:33:53 time="2020-07-15T09:33:52+08:00" level=fatal msg="Fail to build: fail to execute: [/bin/bash -c go build -o /home/goProjects/src/Pick/pick/pick .], err: exit status 2" file="[logrus/entry.go:313]"
09:33:53 09:33:53 Error: goc build error! Please run 'go build' before commit codes
from goc.
Thanks @ CarlJi
the proplem stil exists , i don't konw how to solve09:33:16 09:33:16 time="2020-07-15T09:33:15+08:00" level=info msg="Working directory: /home/goProjects/src/Pick/pick" file="[logrus/entry.go:313]"
09:33:16 09:33:16 time="2020-07-15T09:33:15+08:00" level=info msg="go list cmd is: [/bin/bash -c go list -json ./...]" file="[logrus/entry.go:313]"
09:33:16 09:33:16 time="2020-07-15T09:33:15+08:00" level=info msg="Tmp project generated in: /tmp/goc-build-ea6aef3d380f" file="[logrus/entry.go:313]"
09:33:16 09:33:16 time="2020-07-15T09:33:15+08:00" level=info msg="mod project? false" file="[logrus/entry.go:313]"
09:33:17 09:33:17 time="2020-07-15T09:33:16+08:00" level=info msg="New workingdir in tmp directory in: /tmp/goc-build-ea6aef3d380f/src/Pick/pick" file="[logrus/entry.go:313]"
09:33:17 09:33:17 time="2020-07-15T09:33:16+08:00" level=info msg="New GOPATH: /tmp/goc-build-ea6aef3d380f:/home/goProjects" file="[logrus/entry.go:313]"
09:33:17 09:33:17 time="2020-07-15T09:33:16+08:00" level=info msg="go list cmd is: [/bin/bash -c go list -json ./...]" file="[logrus/entry.go:313]"
09:33:17 09:33:17 time="2020-07-15T09:33:17+08:00" level=info msg="handle package: github.com/valyala/fasthttp/examples/fileserver" file="[logrus/entry.go:313]"
09:33:18 09:33:18 time="2020-07-15T09:33:17+08:00" level=info msg="handle package: github.com/Shopify/sarama/examples/http_server" file="[logrus/entry.go:313]"
09:33:22 09:33:22 time="2020-07-15T09:33:21+08:00" level=info msg="handle package: github.com/golang/snappy/cmd/snappytool" file="[logrus/entry.go:313]"
09:33:22 09:33:22 time="2020-07-15T09:33:21+08:00" level=info msg="handle package: github.com/pierrec/lz4/cmd/lz4c" file="[logrus/entry.go:313]"
09:33:22 09:33:22 time="2020-07-15T09:33:21+08:00" level=info msg="cache cover exist: github.com/pierrec/lz4/cache_373232643464303736396661" file="[logrus/entry.go:313]"
09:33:22 09:33:22 time="2020-07-15T09:33:21+08:00" level=info msg="handle package: github.com/mailru/easyjson/easyjson" file="[logrus/entry.go:313]"
09:33:22 09:33:22 time="2020-07-15T09:33:21+08:00" level=info msg="handle package: github.com/rcrowley/go-metrics/cmd/metrics-bench" file="[logrus/entry.go:313]"
09:33:22 09:33:22 time="2020-07-15T09:33:21+08:00" level=info msg="handle package: github.com/rcrowley/go-metrics/cmd/never-read" file="[logrus/entry.go:313]"
09:33:22 09:33:22 time="2020-07-15T09:33:21+08:00" level=info msg="handle package: github.com/yuin/gopher-lua/cmd/glua" file="[logrus/entry.go:313]"
09:33:22 09:33:22 time="2020-07-15T09:33:22+08:00" level=info msg="handle package: github.com/Shopify/sarama/tools/kafka-console-consumer" file="[logrus/entry.go:313]"
09:33:22 09:33:22 time="2020-07-15T09:33:22+08:00" level=info msg="cache cover exist: github.com/klauspost/compress/zstd/cache_323139396362303938666562" file="[logrus/entry.go:313]"
09:33:22 09:33:22 time="2020-07-15T09:33:22+08:00" level=info msg="cache cover exist: github.com/pierrec/lz4/cache_373232643464303736396661" file="[logrus/entry.go:313]"
09:33:22 09:33:22 time="2020-07-15T09:33:22+08:00" level=info msg="cache cover exist: golang.org/x/net/cache_343664633233633838353763" file="[logrus/entry.go:313]"
09:33:22 09:33:22 time="2020-07-15T09:33:22+08:00" level=info msg="handle package: github.com/Shopify/sarama/tools/kafka-console-partitionconsumer" file="[logrus/entry.go:313]"
09:33:22 09:33:22 time="2020-07-15T09:33:22+08:00" level=info msg="cache cover exist: github.com/klauspost/compress/zstd/cache_323139396362303938666562" file="[logrus/entry.go:313]"
09:33:22 09:33:22 time="2020-07-15T09:33:22+08:00" level=info msg="cache cover exist: github.com/pierrec/lz4/cache_373232643464303736396661" file="[logrus/entry.go:313]"
09:33:22 09:33:22 time="2020-07-15T09:33:22+08:00" level=info msg="cache cover exist: golang.org/x/net/cache_343664633233633838353763" file="[logrus/entry.go:313]"
09:33:22 09:33:22 time="2020-07-15T09:33:22+08:00" level=info msg="handle package: github.com/valyala/fasthttp/examples/helloworldserver" file="[logrus/entry.go:313]"
09:33:22 09:33:22 time="2020-07-15T09:33:22+08:00" level=info msg="handle package: github.com/rcrowley/go-metrics/cmd/metrics-example" file="[logrus/entry.go:313]"
09:33:22 09:33:22 time="2020-07-15T09:33:22+08:00" level=info msg="handle package: Pick/pick/devicemanager/resource/functionPluginFile" file="[logrus/entry.go:313]"
09:33:22 09:33:22 time="2020-07-15T09:33:22+08:00" level=info msg="handle package: github.com/Shopify/sarama/tools/kafka-producer-performance" file="[logrus/entry.go:313]"
09:33:22 09:33:22 time="2020-07-15T09:33:22+08:00" level=info msg="cache cover exist: github.com/klauspost/compress/zstd/cache_323139396362303938666562" file="[logrus/entry.go:313]"
09:33:22 09:33:22 time="2020-07-15T09:33:22+08:00" level=info msg="cache cover exist: github.com/pierrec/lz4/cache_373232643464303736396661" file="[logrus/entry.go:313]"
09:33:22 09:33:22 time="2020-07-15T09:33:22+08:00" level=info msg="cache cover exist: golang.org/x/net/cache_343664633233633838353763" file="[logrus/entry.go:313]"
09:33:22 09:33:22 time="2020-07-15T09:33:22+08:00" level=info msg="handle package: github.com/soniah/gosnmp/examples" file="[logrus/entry.go:313]"
09:33:41 09:33:41 time="2020-07-15T09:33:39+08:00" level=info msg="handle package: github.com/shiena/ansicolor/ansicolor" file="[logrus/entry.go:313]"
09:33:41 09:33:41 time="2020-07-15T09:33:39+08:00" level=info msg="handle package: Pick/pick" file="[logrus/entry.go:313]"
09:33:42 09:33:42 time="2020-07-15T09:33:41+08:00" level=info msg="cache cover exist: github.com/klauspost/compress/zstd/cache_323139396362303938666562" file="[logrus/entry.go:313]"
09:33:42 09:33:42 time="2020-07-15T09:33:42+08:00" level=info msg="cache cover exist: github.com/pierrec/lz4/cache_373232643464303736396661" file="[logrus/entry.go:313]"
09:33:43 09:33:43 time="2020-07-15T09:33:43+08:00" level=info msg="cache cover exist: golang.org/x/net/cache_343664633233633838353763" file="[logrus/entry.go:313]"
09:33:44 09:33:44 time="2020-07-15T09:33:44+08:00" level=info msg="handle package: github.com/Shopify/sarama/tools/kafka-console-producer" file="[logrus/entry.go:313]"
09:33:44 09:33:44 time="2020-07-15T09:33:44+08:00" level=info msg="cache cover exist: github.com/klauspost/compress/zstd/cache_323139396362303938666562" file="[logrus/entry.go:313]"
09:33:44 09:33:44 time="2020-07-15T09:33:44+08:00" level=info msg="cache cover exist: github.com/pierrec/lz4/cache_373232643464303736396661" file="[logrus/entry.go:313]"
09:33:44 09:33:44 time="2020-07-15T09:33:44+08:00" level=info msg="cache cover exist: golang.org/x/net/cache_343664633233633838353763" file="[logrus/entry.go:313]"
09:33:44 09:33:44 time="2020-07-15T09:33:44+08:00" level=info msg="handle package: github.com/valyala/fasthttp/examples/multidomain" file="[logrus/entry.go:313]"
09:33:44 09:33:44 time="2020-07-15T09:33:44+08:00" level=info msg="handle package: github.com/Shopify/sarama/examples/sasl_scram_client" file="[logrus/entry.go:313]"
09:33:44 09:33:44 time="2020-07-15T09:33:44+08:00" level=info msg="cache cover exist: github.com/klauspost/compress/zstd/cache_323139396362303938666562" file="[logrus/entry.go:313]"
09:33:44 09:33:44 time="2020-07-15T09:33:44+08:00" level=info msg="cache cover exist: github.com/pierrec/lz4/cache_373232643464303736396661" file="[logrus/entry.go:313]"
09:33:44 09:33:44 time="2020-07-15T09:33:44+08:00" level=info msg="cache cover exist: golang.org/x/net/cache_343664633233633838353763" file="[logrus/entry.go:313]"
09:33:44 09:33:44 time="2020-07-15T09:33:44+08:00" level=info msg="handle package: github.com/Shopify/sarama/examples/consumergroup" file="[logrus/entry.go:313]"
09:33:44 09:33:44 time="2020-07-15T09:33:44+08:00" level=info msg="cache cover exist: github.com/klauspost/compress/zstd/cache_323139396362303938666562" file="[logrus/entry.go:313]"
09:33:44 09:33:44 time="2020-07-15T09:33:44+08:00" level=info msg="cache cover exist: github.com/pierrec/lz4/cache_373232643464303736396661" file="[logrus/entry.go:313]"
09:33:44 09:33:44 time="2020-07-15T09:33:44+08:00" level=info msg="cache cover exist: golang.org/x/net/cache_343664633233633838353763" file="[logrus/entry.go:313]"
09:33:44 09:33:44 time="2020-07-15T09:33:44+08:00" level=info msg="handle package: github.com/panjf2000/ants/examples" file="[logrus/entry.go:313]"
09:33:44 09:33:44 time="2020-07-15T09:33:44+08:00" level=info msg="cache cover exist: github.com/panjf2000/ants/cache_373732376636353838396563" file="[logrus/entry.go:313]"
09:33:44 09:33:44 time="2020-07-15T09:33:44+08:00" level=info msg="Go building in temp..." file="[logrus/entry.go:358]"
09:33:44 09:33:44 time="2020-07-15T09:33:44+08:00" level=info msg="go build cmd is: [/bin/bash -c go build -o /home/goProjects/src/Pick/pick/pick .]" file="[logrus/entry.go:313]"
09:33:53 09:33:53 # Pick/pick
09:33:53 09:33:53 ./http_cover_apis_auto_generated.go:2377:89: undefined: cache_343664633233633838353763.GoCacheCover_0_34636232323162626631
09:33:53 09:33:53 ./http_cover_apis_auto_generated.go:2379:88: undefined: cache_343664633233633838353763.GoCacheCover_1_34636232323162626631
09:33:53 09:33:53 ./http_cover_apis_auto_generated.go:4448:17: undefined: cache_343664633233633838353763.GoCacheCover_0_34636232323162626631
09:33:53 09:33:53 ./http_cover_apis_auto_generated.go:4450:17: undefined: cache_343664633233633838353763.GoCacheCover_1_34636232323162626631
09:33:53 09:33:53 time="2020-07-15T09:33:52+08:00" level=error msg="go build failed. The error is: exit status 2" file="[logrus/entry.go:313]"
09:33:53 09:33:53 time="2020-07-15T09:33:52+08:00" level=fatal msg="Fail to build: fail to execute: [/bin/bash -c go build -o /home/goProjects/src/Pick/pick/pick .], err: exit status 2" file="[logrus/entry.go:313]"
09:33:53 09:33:53 Error: goc build error! Please run 'go build' before commit codes
from goc.
/assign @memoryliu
from goc.
@wzh521 hi,from the goc debug log, I can get the following information:
GOPATH=home/goProjects
- Your project is built with
GO111MODULE="off"
- Your project is in
/home/goProjects/src/Pick/pick
, and seems there is a lot of main packages inPick/pick
- It seems that you are using an old or self-built goc, as the logrus logs a wrong file name (a known bug, logrus<1.5 with go1.14)
We cannot find the root cause now with the above info, so:
- If possible, can you show us the project structure in
/home/goProjects/src/Pick/pick
? (with the tree command) - If possible, can you attach the
go list -json ./...
command output in/home/goProjects/src/Pick/pick
? - Can you use the latest goc version and try again? The latest version should be 1.2.1, you can download it in https://github.com/qiniu/goc/releases/tag/v1.2.1, you can use the
goc version
command to double confirm it.
from goc.
@lyyyuna
Thank you for your help.I solved this problem by deleting redundant main packages. I will try the new version later,If the problem recurs, can I contact you again?
from goc.
@wzh521 sure~
from goc.
Related Issues (20)
- fatal error: concurrent map iteration and map write HOT 4
- goc build failure due to declaration conflict
- fatal goc build error : 不支持新版go范型
- unknown block type: retract HOT 1
- goc --agentport 多网卡模式下编译指定端口编译后启动失效
- 目前goc支持的go版本是多少? HOT 2
- k8s部署微服务,如果要重新发版,那是不是要提前手动在goc server上执行goc profile,才能把重启前实例上的覆盖率数据保存
- Instrumented binary in container
- 支持统计go.mod中依赖的其他包的覆盖率吗
- go profile 收集覆盖率两次出现的数据不一样 HOT 3
- 项目还在维护么?以及v2啥时候会有呀 我看已经一年没更新了 HOT 1
- gocv2 can't complie not go file ,how this issues be resolved? HOT 1
- stat goc-cover-agent-apis-auto-generated-11111-22222-bridge.go: no such file or directory HOT 1
- 通过在main()方法的首行插入defer DoWhenClose()实现优雅重启
- goc build的时候考虑加个标记的tag吗?因为如果项目的启动命令都是一样的,没有明显的标记,goc service查看就很难区分项目
- 是否考虑增加类调试器的采集模式? HOT 1
- /v1/cover/coverage这个接口建议添加一下说明,获取的是语句块的覆盖率 HOT 6
- 请问有展示报告的 HTML 网页等 GUI 吗?或者输出 JSON 文本也行 HOT 5
- Proposal: support Generics
- go cover不能生成可编译的打桩代码 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from goc.