faint-grass-11531
03/29/2017, 6:03 PM11:02 ~ $ find . -name "*python"
./.cache/pants/setup/bootstrap-Darwin-x86_64/pants.4yvbxp/install/bin/python
./.cache/pants/setup/bootstrap-Darwin-x86_64/pants.bELooo/install/bin/python
./.cache/pants/setup/bootstrap-Darwin-x86_64/pants.Jg5XZW/install/bin/python
fancy-queen-20734
03/29/2017, 6:03 PMfancy-queen-20734
03/29/2017, 6:03 PMComplete output from command /Users/ruthgracewong...W/install/bin/python - setuptools pip wheel:
Ignoring indexes: <https://pypi-mirror.pinadmin.com/simple/,https://pypirepo.pinadmin.com/>
Collecting setuptools
Could not find a version that satisfies the requirement setuptools (from versions: )
fancy-queen-20734
03/29/2017, 6:03 PMfaint-grass-11531
03/29/2017, 6:05 PM11:04 ~/.cache/pants/setup/bootstrap-Darwin-x86_64/pants.4yvbxp/install/bin $ python - setuptools pip wheel
Python 2.7.10 (default, Jul 30 2016, 19:40:32)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
happy-kitchen-89482
03/29/2017, 6:22 PMGoLocalSource.create()
to the effect that the target always globs over the .go
files anyway. But now that I see the comment in __init__()
in that file, I realize that there may also be other files involved...fancy-queen-20734
03/29/2017, 6:23 PMif GoLocalSources.is_go_source(source)
. Make sense?happy-kitchen-89482
03/29/2017, 6:24 PMhappy-kitchen-89482
03/29/2017, 6:24 PM@classmethod
def calculate_sources(cls, targets):
sources = set()
for target in targets:
# Note that the target's sources may contain non-go files,
# e.g., sibling .h/.c files, so we filter on is_go_source.
sources.update(source for source in target.sources_relative_to_buildroot()
if GoLocalSource.is_go_source(source))
return sources
fancy-queen-20734
03/29/2017, 6:25 PMhappy-kitchen-89482
03/29/2017, 6:25 PMhappy-kitchen-89482
03/29/2017, 6:25 PMhappy-kitchen-89482
03/29/2017, 6:25 PMfancy-queen-20734
03/29/2017, 6:31 PMhappy-kitchen-89482
03/29/2017, 9:33 PM./pants lint
? I find it really obnoxious that if I temporarily comment out a line in a test I have to deal with the lint fallout of that change.happy-kitchen-89482
03/29/2017, 9:34 PMwitty-crayon-22786
03/29/2017, 9:34 PMwitty-crayon-22786
03/29/2017, 9:35 PMhappy-kitchen-89482
03/29/2017, 9:35 PMwitty-crayon-22786
03/29/2017, 9:35 PMhappy-kitchen-89482
03/29/2017, 9:35 PMwitty-crayon-22786
03/29/2017, 9:35 PMtest
internally... which helps, but still means you can't run them alone (...without knowing the options to skip tests)witty-crayon-22786
03/29/2017, 9:35 PMcompile
and test
would be great.rough-minister-58256
03/29/2017, 9:47 PM./pants lint
goal.rough-minister-58256
03/29/2017, 9:48 PM./pants test —test-pytest-skip-tests target
to get pants to run the linter.rough-minister-58256
03/29/2017, 9:48 PMarc diff
(phabricator)rough-minister-58256
03/29/2017, 9:48 PMrough-minister-58256
03/29/2017, 9:49 PMfast-megabyte-33579
03/29/2017, 9:49 PMarc lint
step there too kwlznrough-minister-58256
03/29/2017, 9:49 PM