fierce-park-88503
08/23/2018, 10:53 PM$PEX_PYTHON
appropriately. however, when running ./pants lint
, it seems like pants is still picking up system python. is there some other variable to set for that? or some better way of keeping pants away from system python?happy-kitchen-89482
08/24/2018, 12:35 AMhappy-kitchen-89482
08/24/2018, 12:35 AMError: Could not find or load main class coursier.cli.Coursier
happy-kitchen-89482
08/24/2018, 12:36 AMwide-energy-11069
08/24/2018, 1:01 AMeager-librarian-15922
08/24/2018, 1:51 PMeager-librarian-15922
08/24/2018, 2:21 PM./pants --changed-parent="${COMMIT_ID}" --changed-include-dependees=transitive test
We’ve got a few custom targets where we set default_sources_globs
It seems like the command I pasted above will not detect changes to files that should be globbed by what we set in default_sources_globs
. Does default_sources_globs
work differently than having sources listed in the BUILD file itself?eager-librarian-15922
08/24/2018, 2:26 PMpants test
then it detects changes to the files globbed by default_sources_glob
average-sugar-76469
08/24/2018, 3:50 PMpants repl
? (Similar to running make --just-print
for Makefiles.)polite-vase-75369
08/24/2018, 4:03 PMpolite-vase-75369
08/24/2018, 4:06 PMpolite-vase-75369
08/24/2018, 4:07 PMhappy-kitchen-89482
08/24/2018, 5:01 PM./pants server --open
, which shows you every command executed by each pants run since the last clean.happy-kitchen-89482
08/24/2018, 5:05 PM./pants help-all | grep yarn
is instructive, if verbosehappy-kitchen-89482
08/24/2018, 5:07 PMversion
option under [yarnpkg-distribution]
in pants.ini.happy-kitchen-89482
08/24/2018, 5:07 PMhappy-kitchen-89482
08/24/2018, 5:07 PMhappy-kitchen-89482
08/24/2018, 5:11 PMhappy-kitchen-89482
08/24/2018, 5:15 PMdefault_sources_globs
shouldn’t work any differently from if you had provided that glob explicitly in the target sources=
definition. If it does, there’s a bug.happy-kitchen-89482
08/24/2018, 5:16 PMfierce-park-88503
08/24/2018, 5:44 PMFile "/Users/me/repo/.pants.d/lint/python-eval/executable_pex/cc93f1c8a76250dabba753775c83cbece3fa0562/__pants_executable__.py", line 22, in backtrace_to_here
line_text = tb.code_context[tb.index]
TypeError: 'NoneType' object has no attribute '__getitem__'
I can binary
the target w/o issue. anyone know what’s going on? I’m guessing there’s some error being thrown, but the reporting of the error is somehow also messing up, and that’s this error I’m seeing?enough-analyst-54434
08/24/2018, 5:48 PM/Users/me/repo/.pants.d/lint/python-eval/executable_pex/cc93f1c8a76250dabba753775c83cbece3fa0562/__pants_executable__.py
directly to work around that. Pants assumes control of .pants.d and won't check for edits - so will re-use the pex with your edit.fierce-park-88503
08/24/2018, 6:06 PMfierce-park-88503
08/24/2018, 6:09 PMfierce-park-88503
08/24/2018, 8:06 PMwide-energy-11069
08/24/2018, 8:26 PM$ ./pants resolve contrib/node/examples/src/node/server-project -ldebug
13:25:12 00:02 [jvm-platform-validate]
13:25:12 00:02 [resolve]
13:25:12 00:02 [ivy]
13:25:12 00:02 [coursier]
13:25:12 00:02 [go]
13:25:12 00:02 [scala-js-compile]
13:25:12 00:02 [scala-js-link]
13:25:12 00:02 [node]
Invalidated 1 target.
Cannot find npm-shrinkwrap.json. Did you forget to put it in target sources? This package will fall back to inject package.json with pants BUILD dependencies including node_remote_module and other node dependencies. However, this is not fully supported.
Removing [u'dependencies', u'devDependencies', u'peerDependencies', u'optionalDependencies'] from package.json for server-project
Adding {u'babel-core': '6.22.1', u'babel-cli': '6.22.1', u'mocha': '2.3.0'} to package.json for server-projectWARN] npm does not support frozen lockfile option. Ignored.
DEBUG] binary_request: BinaryRequest(supportdir=u'bin/node', version='v6.9.1', name=u'node', platform_dependent=True, external_url_generator=None, archiver=<pants.fs.archive.TarArchiver object at 0x110ff3150>)
DEBUG] self._allow_external_binary_tool_downloads: True
DEBUG] external_url_generator: None
DEBUG] fetch_request: BinaryFetchRequest(download_path='bin/node/mac/10.12/v6.9.1/node.tar.gz', urls=('<https://binaries.pantsbuild.org/bin/node/mac/10.12/v6.9.1/node.tar.gz>',))
DEBUG] bootstrapped_binary_path: /Users/yic/.cache/pants/bin/node/mac/10.12/v6.9.1/node.tar.gz
INFO] Attempting to fetch node.tar.gz binary from: <https://binaries.pantsbuild.org/bin/node/mac/10.12/v6.9.1/node.tar.gz> ...
DEBUG] in BinaryToolFetcher: url=<https://binaries.pantsbuild.org/bin/node/mac/10.12/v6.9.1/node.tar.gz>, timeout_secs=30
DEBUG] Starting new HTTPS connection (1): <http://binaries.pantsbuild.org|binaries.pantsbuild.org>
DEBUG] <https://binaries.pantsbuild.org:443> "GET /bin/node/mac/10.12/v6.9.1/node.tar.gz HTTP/1.1" 400 None
DEBUG] releasing lock: <pants.process.lock.OwnerPrintingInterProcessFileLock object at 0x113247d50>
13:25:12 00:02 [install]
FAILURE: (u'Error resolving binary request BinaryRequest(supportdir=bin/node, version=v6.9.1, name=node, platform_dependent=True, external_url_generator=None, archiver=<pants.fs.archive.TarArchiver object at 0x110ff3150>): Failed to fetch node.tar.gz binary from any source: (Failed to fetch binary from <https://binaries.pantsbuild.org/bin/node/mac/10.12/v6.9.1/node.tar.gz>: Fetch of <https://binaries.pantsbuild.org/bin/node/mac/10.12/v6.9.1/node.tar.gz> failed with status code 400)', BinaryNotFound(u'Failed to fetch node.tar.gz binary from any source: (Failed to fetch binary from <https://binaries.pantsbuild.org/bin/node/mac/10.12/v6.9.1/node.tar.gz>: Fetch of <https://binaries.pantsbuild.org/bin/node/mac/10.12/v6.9.1/node.tar.gz> failed with status code 400)',))
brainy-answer-80371
08/24/2018, 8:34 PMpython_tests
target? Either in pants somehow or by being able to provide my own pytest.ini
?wide-energy-11069
08/24/2018, 8:39 PMwide-energy-11069
08/24/2018, 8:40 PMwide-energy-11069
08/24/2018, 8:41 PMprep_command(
name = "set_up",
prep_args = [
"-n",
"MY_ENV_VAR=123",
],
prep_environ = True,
prep_executable = "echo",
scope = "test",
)