jolly-midnight-72759
08/25/2020, 12:21 AMpants.toml
and other config files for versions 1.27 to 1.30 (V1 engine for now)?
# All of the following are seeded with defaults in the config
# user: the current user
# homedir: the current user's home directory
# buildroot: the root of this repo
# pants_bootstrapdir: the global pants scratch space primarily used for caches
# pants_configdir: the global pants storage for config files
# pants_distdir: user visible artifacts for this repo go here
# pants_workdir: the scratch space used to for live builds in this repo
full-oyster-41619
08/25/2020, 7:11 AMpolite-vase-75369
08/25/2020, 1:37 PMhappy-kitchen-89482
08/25/2020, 9:18 PMjolly-midnight-72759
08/25/2020, 10:52 PM./pants help-advanced
outputs. This is done differently in v1.18, v1.30, and v2.0.0. Is there a way to get a "machine friendly" output using ./pants
? I am thinking something like ./pants meta --section="GENERAL" --key="pants_workdir"
.plain-river-51682
08/26/2020, 12:18 PMBuild graph construction failed: ExecutionError 1 Exception encountered:
Exception: Snapshot failed: Throw { val: Error { kind: Io(Os { code: 28, kind: Other, message: "No space left on device" }), paths: [] }, python_traceback: "Traceback (no traceback):\n <pants native internals>\nException: Error { kind: Io(Os { code: 28, kind: Other, message: \"No space left on device\" }), paths: [] }", engine_traceback: ["Fingerprinting: <SOME SCALA FILE>.scala"] }
pants is invoked in gitlab-ci inside a docker container. The host has enough diskspace available. Where is it trying to write?user
08/26/2020, 9:01 PMfull-oyster-41619
08/27/2020, 3:56 PMerror 27-Aug-2020 07:34:27 13:34:27 [ERROR] Unrecognized command line flag '--target-type' on global scope. Suggestions:
error 27-Aug-2020 07:34:27 --filter-target-type, --target-types-details, --target-types-output-file, --target-types-sep
this was my command
./pants --version && ./pants --changed-since=develop --changed-include-dependees=transitive filter --target-type=python_library | xargs ./pants setup-py ./pants --changed-since=develop --changed-include-dependees=transitive filter --target-type=python_library | xargs -i ./pants setup-py {} -- sdist && ./pants --changed-since=develop --changed-include-dependees=transitive filter --target-type=python_binary
happy-kitchen-89482
08/27/2020, 6:24 PMhappy-kitchen-89482
08/27/2020, 6:25 PM&&
after the first xargs ./pants setup-py
though?happy-kitchen-89482
08/27/2020, 6:31 PM--filter-target-type
flag means "The target_type
option on the filter
scope." This can be shortened to --target-type
if it comes immediately after the filter
goal on the command line. So that error means that pants encountered --target-type
not immediately after filter
.happy-kitchen-89482
08/27/2020, 6:31 PMhappy-kitchen-89482
08/27/2020, 6:31 PM./pants setup-py ./pants --changed-since=develop --changed-include-dependees=transitive filter --target-type=python_library
11:31:03.16 [ERROR] Unrecognized command line flag '--target-type' on global scope. Suggestions:
--filter-target-type, --target-types-details, --target-types-output-file, --target-types-sep
happy-kitchen-89482
08/27/2020, 6:32 PM/pants setup-py && ./pants --changed-since=develop --changed-include-dependees=transitive filter --target-type=python_library
should workminiature-lamp-45970
08/28/2020, 12:30 AMfull-oyster-41619
08/28/2020, 12:42 PMhappy-kitchen-89482
08/29/2020, 5:38 PMnarrow-activity-17405
08/31/2020, 8:02 AMnarrow-activity-17405
08/31/2020, 8:58 AMnarrow-activity-17405
08/31/2020, 9:36 AMfull-oyster-41619
08/31/2020, 11:22 AMfrom pants.backend.python.targets.python_target import PythonTarget
from pants.build_graph.build_graph import BuildGraph
from pants.build_graph.address import Address,
# How to get dependencies?
address = Address(lib_path, lib_name)
# target = graph??.get_target(address)
# target = PythonTarget(name=name, address=address, build_graph=build_graph???)
dependencies = target.dependencies()
wonderful-iron-54019
08/31/2020, 6:17 PMdocker_image
target suppose i wanted to include a pex binary as the entrypoint, how could i build the binary into the docker image, given the fact that both targeets are built in a hermetic environment, and i'd need to refer to the binary in my dockerfilewooden-thailand-8386
08/31/2020, 6:55 PMpants
inside an alpine docker image and I keep getting this:
ERROR: No matching distribution found for pantsbuild.pants==1.30.0
when I do a pip install pantsbuild.pants==1.30.0
on my host machine is works fine but not inside alpine.happy-kitchen-89482
09/01/2020, 4:22 AMsetup.py
. Depending on it doesn't do anything. If you want to depend on a published version of B then you do so like any other "3rdparty" requirement (but you have to have published it first). But I'm guessing that's not what you want? Typically since A/tests
and B
are in the same repo you would have A/tests
depend on B
as an internal dependency. That is, A/tests
's python_tests
should depend on B's python_library
(not its python_distribution
). Then the test can invoke B's code directly (rather than spawning a process to run it).happy-kitchen-89482
09/01/2020, 4:23 AM_dist
target is interesting, but therehappy-kitchen-89482
09/01/2020, 4:23 AMsetup.py
into a dist (for example, should it build a wheel or an sdist?)happy-kitchen-89482
09/01/2020, 4:28 AMnarrow-activity-17405
09/01/2020, 7:49 AMnarrow-activity-17405
09/01/2020, 7:58 AMnarrow-activity-17405
09/01/2020, 8:22 AM