commons icon indicating copy to clipboard operation
commons copied to clipboard

Missing comma in dependencies causes pants to emit "no valid targets found" instead of properly erring out.

Open itayd opened this issue 10 years ago • 2 comments

for example, in a BUILD file:

python_library(
  name = 'foo',
  sources = ['foo.py'],
  dependencies = [
    pants('i forgot to put a comma at the end, here ->')
    pants('i am ok!'),
    pants('last one!')
  ]
)

then

./pants py foo

gives

"No valid target specified!"

itayd avatar Apr 24 '14 17:04 itayd

I copied this issue to https://github.com/pantsbuild/pants/issues/86 so that Pants folks will see it. http://pantsbuild.github.io/howto_contribute.html

lahosken avatar Apr 28 '14 17:04 lahosken

Thanks.

itayd avatar May 04 '14 22:05 itayd