When using CLI If no build flags were passed then underlying command for listing packages will contain empty argument - like go list "-e" "-json" "-compiled=true" "-test=false" "-export=true" "-deps=true" "-find=false" "" "--" "some/pkg/..." - note third from the end argument.
This PR excludes passing down empty build argument
When using CLI If no build flags were passed then underlying command for listing packages will contain empty argument - like
go list "-e" "-json" "-compiled=true" "-test=false" "-export=true" "-deps=true" "-find=false" "" "--" "some/pkg/..."
- note third from the end argument.This PR excludes passing down empty build argument