witty-crayon-22786
08/29/2022, 7:06 PMrg -0 -l 'Platform\.current' | xargs -o -0 vim
witty-crayon-22786
08/29/2022, 9:38 PMwitty-crayon-22786
08/29/2022, 10:25 PM@union
usage now requires an EnvironmentMatcher
to be part of its interface.wide-midnight-78598
08/30/2022, 5:11 AMwide-midnight-78598
08/30/2022, 1:40 PMexport
should work, and then see if we can build an option to generate completions, as well as a venv. I'm on the fence about whether this is better or worse, but using export
(or any goal) feels more like... dunno... I always associate those to targets and production code (and `export`ing a dev env to help out), while completions are related to the Pants tooling itself.
So what about doing something more like --version
? ./pants --completions
?polite-garden-50641
08/30/2022, 2:56 PMCaused by:
command ["/tmp/pants-sandbox-A9W6vX/.cache/pyoxidizer/python_distributions/python.1c490d71269e/python/install/bin/python3.9", "-m", "pip", "--disable-pip-version-check", "install", "--target", "/tmp/pyoxidizer-pip-installjeHPfR/install", "pantsbuild.pants-2.15.0.dev0-cp37-cp37m-linux_x86_64.whl"] exited with code 1
--> ./pyoxidizer.bzl:21:30
|
21 | exe.add_python_resources(exe.pip_install(['pantsbuild.pants-2.15.0.dev0-cp37-cp37m-linux_x86_64.whl']))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ PythonExecutable.pip_install()
error: calling pip install
to repo run ./pants package src/python/::
(this is on linux, didn't try on mac).hundreds-father-404
08/30/2022, 5:35 PMancient-vegetable-10556
08/30/2022, 6:47 PMnative_engine
during CI? (ping @witty-crayon-22786)polite-garden-50641
08/30/2022, 10:15 PMFile "/Users/asher/.cache/pants/setup/bootstrap-Darwin-arm64/2.15.0.dev0_py39/lib/python3.9/site-packages/pants/engine/target.py", line 173, in __repr__
f"default={repr(self.default)})"
AttributeError: 'PythonRequirementsField' object has no attribute 'default'
(I am playing around with some plugin APIs and stumbled across this when calling str on that on resolve_to_requirements_fields
implemented here: https://github.com/pantsbuild/pants/blob/7251de9bb8aef692b4ffcfc62c36943983a51145/src/python/pants/backend/python/goals/lockfile.py#L252bitter-ability-32190
08/31/2022, 10:50 AMSnapshot
for my plugin implementors and only some of them use the Digest
(the other build their own from the files
plus other info)witty-crayon-22786
08/31/2022, 5:57 PMbig-fall-51153
08/31/2022, 5:58 PMbusy-vase-39202
08/31/2022, 6:09 PMfast-nail-55400
08/31/2022, 8:47 PMmain
from a PR I just landed. https://github.com/pantsbuild/pants/runs/8121604214?check_suite_focus=true#step:17:1194 -- will mark it ignored for nowbitter-ability-32190
09/01/2022, 1:38 AMbitter-ability-32190
09/01/2022, 5:35 PMclass X:
async def helper():
pass
class Y(X):
async def helper():
return await Get(Snapshot, PathGlobs(["..."]))
@rule
async def my_rule(request: RequestType) -> RetType:
if False:
# Just for static scraping purposes
Get(Snapshot, PathGlobs, None)
x_or_y: X = get_some_X_or_Y_instance()
foo = await x_or_y.helper()
...
ancient-vegetable-10556
09/01/2022, 6:09 PMhundreds-father-404
09/01/2022, 8:18 PMdocker_environment
target, you mentioned the image name like centos6:latest
, but also a hash?hundreds-father-404
09/01/2022, 9:19 PMProcess(platform=)
?hundreds-father-404
09/01/2022, 11:36 PMpython_bootstrap.py
and asdf.py
. Those will need to run in the Docker containerhundreds-father-404
09/02/2022, 12:27 AMcontext.core.command_runners
to let you dynamically change which CommandRunners are used for a particular process, whereas right now it's the same for the whole Pants wide-energy-11069
09/02/2022, 6:40 PMhundreds-father-404
09/02/2022, 6:45 PMwitty-crayon-22786
09/02/2022, 6:57 PMbusy-vase-39202
09/02/2022, 7:06 PMmain
but don't seem to be overwriting the older versions of those pages that were in readme. Does the readme page need to be deleted in order for its in-repo version to take over?witty-crayon-22786
09/02/2022, 8:07 PMmain
is broken: getting a PR out shortly.ancient-vegetable-10556
09/02/2022, 8:41 PMhundreds-father-404
09/02/2022, 10:21 PMProcess
run in Docker, thanks to great work by @fast-nail-55400 😎 https://github.com/pantsbuild/pants/pull/16764#issuecomment-1235933533wide-energy-11069
09/03/2022, 1:07 AMInteractiveProcessRequest
https://github.com/pantsbuild/pants/blob/91d35dc323d3fd2e88d982d4abb9bfbc739305ab/src/python/pants/engine/process.py#L363-L381
Is this class supposed to be gone as well?
If so, what should I do about the references around here for example? https://github.com/pantsbuild/pants/blob/1cdca117c7c6df7c7b5adb6012d64efbbb40e887/src/python/pants/backend/docker/goals/publish.py#L88
I tried using InteractiveProcess.from(docker.push_image(tag, env)))
, but got rule errors.wide-energy-11069
09/03/2022, 1:16 AM