Skip to content

[BUG] github.com/kolkov/racedetector@v0.4.10: missing go.sum entry for go.mod file #15

@glycerine

Description

@glycerine

I tried a basic run of "racedetector" and hit a snag. Could not figure out how
to solve the snag from the printed suggestions. Probably something simple fix but I don't know
what it is...

 $ go install github.com/kolkov/racedetector/cmd/racedetector@latest
go: downloading github.com/kolkov/racedetector v0.7.0
go: downloading golang.org/x/mod v0.30.0
$ git clone https://github.com/glycerine/rpc25519
$ cd rpc25519
jaten@rog ~/rpc25519 (master) $ go version
go version go1.25.3 linux/amd64
jaten@rog ~/rpc25519 (master) $ racedetector test -v
Instrumented: chacha.go
  - 26 writes, 93 reads instrumented
Instrumented: chacha_test.go
  - 7 writes, 31 reads instrumented
Instrumented: ckt.go
  - 92 writes, 143 reads instrumented
Instrumented: ckt2.go
  - 48 writes, 76 reads instrumented
Instrumented: ckt_example.go
  - 0 writes, 8 reads instrumented
Instrumented: ckt_gen.go
  - 334 writes, 207 reads instrumented
Instrumented: ckt_gen_test.go
  - 30 writes, 45 reads instrumented
Instrumented: ckt_test.go
  - 23 writes, 57 reads instrumented
Instrumented: cli.go
  - 167 writes, 245 reads instrumented
Instrumented: cli_test.go
  - 92 writes, 119 reads instrumented
Instrumented: common.go
  - 20 writes, 39 reads instrumented
Instrumented: compare.go
  - 6 writes, 31 reads instrumented
Instrumented: compress.go
  - 17 writes, 18 reads instrumented
Instrumented: compress_test.go
  - 0 writes, 8 reads instrumented
Instrumented: config.go
  - 16 writes, 32 reads instrumented
Instrumented: config_test.go
  - 0 writes, 1 reads instrumented
Instrumented: dd_test.go
  - 8 writes, 35 reads instrumented
Instrumented: determ.go
  - 2 writes, 5 reads instrumented
Instrumented: dmap.go
  - 40 writes, 26 reads instrumented
Instrumented: dmap_test.go
  - 28 writes, 68 reads instrumented
Instrumented: doc.go
Instrumented: example.go
  - 26 writes, 81 reads instrumented
Instrumented: example_gen.go
  - 1525 writes, 838 reads instrumented
Instrumented: example_gen_test.go
  - 110 writes, 165 reads instrumented
Instrumented: fileutil.go
  - 3 writes, 10 reads instrumented
Instrumented: fileutil_unix.go
  - 0 writes, 2 reads instrumented
Instrumented: fileutil_windows.go
Instrumented: filterstacks.go
  - 4 writes, 6 reads instrumented
Instrumented: format.go
  - 3 writes, 7 reads instrumented
Instrumented: fragment_test.go
  - 3 writes, 25 reads instrumented
Instrumented: fragrpc_test.go
  - 7 writes, 48 reads instrumented
Instrumented: fuzz_test.go
Instrumented: gitcommit.go
Instrumented: greencodec.go
  - 14 writes, 14 reads instrumented
Instrumented: grid_test.go
  - 3 writes, 15 reads instrumented
Instrumented: hdr.go
  - 16 writes, 46 reads instrumented
Instrumented: hdr_gen.go
  - 355 writes, 208 reads instrumented
Instrumented: hdr_gen_test.go
  - 20 writes, 30 reads instrumented
Instrumented: hdr_test.go
  - 0 writes, 10 reads instrumented
Instrumented: hist_test.go
  - 13 writes, 19 reads instrumented
Instrumented: hostkey.go
  - 23 writes, 46 reads instrumented
Instrumented: http_test.go
  - 26 writes, 23 reads instrumented
Instrumented: magic7.go
  - 3 writes, 4 reads instrumented
Instrumented: mathrand.go
  - 14 writes, 13 reads instrumented
Instrumented: mutmap.go
  - 16 writes, 13 reads instrumented
Instrumented: omap.go
  - 37 writes, 26 reads instrumented
Instrumented: omap_test.go
  - 27 writes, 68 reads instrumented
Instrumented: peer.go
  - 0 writes, 9 reads instrumented
Instrumented: peer2.go
  - 0 writes, 4 reads instrumented
Instrumented: peer2_test.go
  - 8 writes, 32 reads instrumented
Instrumented: peer_test.go
  - 5 writes, 24 reads instrumented
Instrumented: pq.go
  - 12 writes, 27 reads instrumented
Instrumented: pq_test.go
Instrumented: pump.go
  - 14 writes, 30 reads instrumented
Instrumented: quic_client.go
  - 3 writes, 21 reads instrumented
Instrumented: quic_server.go
  - 15 writes, 27 reads instrumented
Instrumented: raceoff.go
Instrumented: raceon.go
Instrumented: rand.go
  - 11 writes, 17 reads instrumented
Instrumented: simgrid_test.go
  - 14 writes, 133 reads instrumented
Instrumented: simnet.go
  - 130 writes, 283 reads instrumented
Instrumented: simnet_api.go
  - 42 writes, 137 reads instrumented
Instrumented: simnet_client.go
  - 0 writes, 6 reads instrumented
Instrumented: simnet_nosynctest.go
Instrumented: simnet_repair.go
  - 22 writes, 24 reads instrumented
Instrumented: simnet_server.go
  - 39 writes, 45 reads instrumented
Instrumented: simnet_string.go
  - 220 writes, 84 reads instrumented
Instrumented: simnet_synctest.go
  - 0 writes, 2 reads instrumented
Instrumented: simnet_synctest2.go
  - 0 writes, 2 reads instrumented
Instrumented: simnet_test.go
  - 78 writes, 202 reads instrumented
Instrumented: srv.go
  - 159 writes, 258 reads instrumented
Instrumented: srv_test.go
  - 27 writes, 99 reads instrumented
Instrumented: streaming_test.go
  - 32 writes, 110 reads instrumented
Instrumented: symmetric.go
  - 83 writes, 212 reads instrumented
Instrumented: symmetric_gen.go
  - 229 writes, 140 reads instrumented
Instrumented: symmetric_gen_test.go
  - 20 writes, 30 reads instrumented
Instrumented: syncdmap.go
  - 40 writes, 26 reads instrumented
Instrumented: syncomap.go
  - 37 writes, 26 reads instrumented
Instrumented: synctest_test.go
  - 4 writes, 16 reads instrumented
Instrumented: version.go
Instrumented: vprint.go
  - 19 writes, 23 reads instrumented
Instrumented: zygo.go
  - 4 writes, 3 reads instrumented
Instrumented: zygo_test.go
  - 4 writes, 9 reads instrumented
go: warning: "all" matched no packages
# github.com/glycerine/rpc25519
example.go:17:2: github.com/kolkov/racedetector@v0.4.10: missing go.sum entry for go.mod file; to add it:
	go mod download github.com/kolkov/racedetector
# github.com/glycerine/rpc25519
cli.go:32:2: github.com/kolkov/racedetector@v0.4.10: missing go.sum entry for go.mod file; to add it:
	go mod download github.com/kolkov/racedetector
# github.com/glycerine/rpc25519
chacha.go:18:2: missing go.sum entry for module providing package github.com/kolkov/racedetector/race (imported by github.com/glycerine/rpc25519); to add:
	go get github.com/glycerine/rpc25519
FAIL	github.com/glycerine/rpc25519 [setup failed]
FAIL
jaten@rog ~/rpc25519 (master) $ 
jaten@rog ~/rpc25519 (master) $ go mod download github.com/kolkov/racedetector
go: module github.com/kolkov/racedetector: not a known dependency
jaten@rog ~/rpc25519 (master) $

also the go test -c -o flags that usually works with "go test" seems not to create a test executable:

$ racedetector test -v -c -o krd_test
Error instrumenting sources: failed to collect files from /home/jaten/trash/tmp/rpc25519/krd_test: open /home/jaten/trash/tmp/rpc25519/krd_test: no such file or directory
jaten@rog ~/trash/tmp/rpc25519 (master) $ go test -race -v -c -o krd_test
jaten@rog ~/trash/tmp/rpc25519 (master) $ 

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions