https://github.com/n9v9/goland-fix-go-15787
Makeshift fix for GoLand issue GO-15787.
https://github.com/n9v9/goland-fix-go-15787
bpf bpftrace ebpf goland
Last synced: 25 days ago
JSON representation
Makeshift fix for GoLand issue GO-15787.
- Host: GitHub
- URL: https://github.com/n9v9/goland-fix-go-15787
- Owner: n9v9
- Created: 2025-03-31T09:02:01.000Z (27 days ago)
- Default Branch: main
- Last Pushed: 2025-03-31T09:04:41.000Z (27 days ago)
- Last Synced: 2025-03-31T10:22:40.797Z (26 days ago)
- Topics: bpf, bpftrace, ebpf, goland
- Language: C
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GoLand Fix GO-15787
A makeshift fix for GoLand issue
[GO-15787](https://youtrack.jetbrains.com/issue/GO-15787/Test-Run-Configuration-doesnt-always-respect-exec-argument).## Compile
See the `justfile` for available commands, or simply run `just` to get an overview.
```bash
> just
Available recipes:
build # Build the ready to run binary for the current system.
clean # Clean generated and built files.
generate # Build BPF files and generate Go code.
```## Run
Ensure the binary is running, then select the specific test you want to execute from within GoLand.
This can be a test function, a test from a table test or a complete package. The selected test
should then be run via virtrun, and it should just work™.## How does it work
The eBPF program intercepts the `execve(2)` syscall, checks if the arguments match, and if they do,
replaces them so the test is run via `go test -exec ...`.