go-junit-report icon indicating copy to clipboard operation
go-junit-report copied to clipboard

zsh: command not found: go-junit-report

Open Parthiba-Hazra opened this issue 2 years ago • 5 comments

Ran the command - go install github.com/jstemmer/go-junit-report/v2@latest test go-junit-report - go test -v 2>&1 ./... | go-junit-report -set-exit-code > report.xml output - zsh: command not found: go-junit-report I think I had to add some path in .zshrc file, but I cant understand what to add.. Screenshot from 2023-03-14 11-33-04

Parthiba-Hazra avatar Mar 14 '23 06:03 Parthiba-Hazra

What is your GOPATH? (i.e. go env GOPATH) Can you the binary in it?

LRipi avatar Mar 15 '23 10:03 LRipi

What is your GOPATH? (i.e. go env GOPATH) Can you the binary in it?

GOPATH - /home/username/go

Parthiba-Hazra avatar Mar 15 '23 14:03 Parthiba-Hazra

Getting this too now. Was working before. Now getting: /bin/bash: go-junit-report: command not found

junit-report is installed in my go/bin directory

qmilangowin avatar Jun 29 '23 17:06 qmilangowin

GOPATH - /home/username/go

junit-report is installed in my go/bin directory

Is $GOPATH/bin part of your $PATH environment variable?

joschi avatar Jun 28 '24 16:06 joschi