OJ / gobuster

Directory/File, DNS and VHost busting tool written in Go
Apache License 2.0
9.28k stars 1.16k forks source link

TEST FAILURE: -buildmode=pie not supported when -race is enabled on linux/amd64 #512

Closed blshkv closed 1 week ago

blshkv commented 1 week ago

don't know much about it, but you might have some ideas:

>>> Test phase: net-analyzer/gobuster-3.6.0
make -j8   test
go test -v -race ./...
-buildmode=pie not supported when -race is enabled on linux/amd64
make: *** [Makefile:25: test] Error 1

Also, see: https://github.com/pentoo/pentoo-overlay/issues/1814

firefart commented 1 week ago

Just remove the -race flag or also build with -race before. This is not supported in go: https://go-review.googlesource.com/c/go/+/41335 If you need a release binary just remove the -race flag from the tests

blshkv commented 1 week ago

Please remove it in your Makefile: https://github.com/OJ/gobuster/blob/master/Makefile#L25

firefart commented 1 week ago

Why should I? You are building it on your machine, just execute the command

blshkv commented 1 week ago

I'm just executing it : "make test" and fails. Isn't the problem in the Makefile?