You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I'm trying to use defaultFlags but it looks like its ignored.
Here the reproducer:
mkdir ko-reproducer
cd ko-reproducer
cat <<EOF > main.go
package main
import "fmt"
func main() {
fmt.Println("Hello World!")
}
EOF
go mod init example.com
go mod tidy
go build -cover .
GOCOVERDIR=hello ./example.com
This results in this error:
error: coverage meta-data emit failed: output directory "hello" inaccessible (err: stat hello: no such file or directory); no coverage data written
Hello World!
error: coverage counter data emit failed: output directory "hello" inaccessible (err: stat hello: no such file or directory); no coverage data written
error: coverage meta-data emit failed: output directory "hello" inaccessible (err: stat hello: no such file or directory); no coverage data written
Hello World!
error: coverage counter data emit failed: output directory "hello" inaccessible (err: stat hello: no such file or directory); no coverage data written
PD: I tested introducing a random string into defaultFlags and it does not fail, so its effectively ignored.
PD2: I can give it a go and try to fix it myself, but I want someone to confirm it first.
The text was updated successfully, but these errors were encountered:
Hello! I'm trying to use
defaultFlags
but it looks like its ignored.Here the reproducer:
This results in this error:
Now with
ko
:Does not fail:
Now using "normal" flags:
PD: I tested introducing a random string into
defaultFlags
and it does not fail, so its effectively ignored.PD2: I can give it a go and try to fix it myself, but I want someone to confirm it first.
The text was updated successfully, but these errors were encountered: