wonderful-iron-54019
05/18/2020, 7:33 PMException message: Both address specs and filesystem specs given. Please use only one type of spec.
fancy-summer-52431
05/18/2020, 8:17 PM// TODO: Run this by someone who truly understands software licensing rules. Maybe this abundance
// of caution is unnecessary, and we can just re-use the name with no license considerations.
fancy-summer-52431
05/18/2020, 11:02 PMwitty-crayon-22786
05/18/2020, 11:02 PMwitty-crayon-22786
05/18/2020, 11:02 PMfancy-summer-52431
05/18/2020, 11:02 PMfancy-summer-52431
05/19/2020, 2:42 AMhappy-kitchen-89482
05/20/2020, 2:10 AMhappy-kitchen-89482
05/20/2020, 2:10 AMcold-journalist-66984
05/20/2020, 4:09 PMsrc/python/thing-i-am-working-on/module.py
src/python/some-other-thing/other_module.py
when I try to run pants setup-py src/python/thing-i-am-working-on::
I get this error and I’m not sure what to do about it
FAILURE: No exported target owner found for PythonLibrary(BuildFileAddress(src/python/some-other-thing/BUILD, some-other-thing))
Any thoughts on what could be going on here?fast-author-5112
05/20/2020, 5:01 PM<repo_name> @ <git+git://github.com/><path_to_repo>
. when i add that to my 3rdparty requirements.txt for pants i get a 'Could not satisfy all requirements' error. does anyone have suggestions?user
05/20/2020, 5:45 PMpolite-garden-50641
05/20/2020, 5:47 PMregister("--some-option", type=str, help="bla bla bla.")
Is there a way to specify that the option is required ? (I tried passing required=True) but I am getting an error: InvalidKwarg: Invalid registration kwarg required.
looking here: https://github.com/pantsbuild/pants/blob/e59706d9aef5c0d6ca528478ccd8b2e6eb43c739/src/python/pants/option/parser.py#L549 nothing seems like an obvious choice.polite-garden-50641
05/20/2020, 8:17 PMfew-alarm-32433
05/23/2020, 8:18 AM--progress-bar off
) in the pants bootstrap script?
https://github.com/pantsbuild/setup/blob/gh-pages/pants#L173
Happy to submit a PR..
We use CircleCI which presents itself as a TTY, so it’s hard to navigate stdout if we don’t have a cached bootstrap of pants. Not really pants’ fault of course but I don’t think progress bars are strictly better even in interactive shells.
The good news is that it’s easy for users to tweak the bootstrap script if they like.jolly-midnight-72759
05/24/2020, 3:23 PMThe value of the dependencies field is a list of addresses of other targets. If code in target A directly depends on code in target B (e.g., by importing a symbol from B) then A should declare a dependency on B. There is no need to declare indirect dependencies (that is, transitive dependencies of your direct dependencies).I think it would be helpful to mention that there are two types of dependencies: 3rdparty and other monorepo target.
jolly-midnight-72759
05/24/2020, 3:50 PMpants targets ::
first. This gives me a list of target types. I then think or use the help to remember that the goal I want is lists
. As needing a list of target types is less frequently needed then a list of targets, I would argue that targets
is more appropriate for listing the targets in a build. Is there a perspective on this that I am missing?purple-van-78680
05/27/2020, 3:52 PMException message: Package SourcePackage('file:///Users/jay.lawrence/code/pantstheon/.pants.d/python-setup/resolved_requirements/CPython-3.7.7/PyYAML-5.3.1.tar.gz') is not translateable by ChainedTranslator(WheelTranslator, EggTranslator, SourceTranslator)
purple-van-78680
05/28/2020, 2:34 PM09:31:56 00:13 [create-monolithic-jar]
09:31:56 00:13 [add-internal-classes]
09:31:56 00:13 [add-dependency-jars]
==== stdout ====
==== stderr ====
java.lang.IllegalAccessError: class org.pantsbuild.tools.jar.JarBuilder$7 tried to access method 'com.google.common.collect.TreeTraverser com.google.common.io.Files.fileTreeTraverser()' (org.pantsbuild.tools.jar.JarBuilder$7 and com.google.common.io.Files are in unnamed module of loader 'app')
at org.pantsbuild.tools.jar.JarBuilder$7.execute(JarBuilder.java:743)
at org.pantsbuild.tools.jar.JarBuilder.getAdditions(JarBuilder.java:1188)
at org.pantsbuild.tools.jar.JarBuilder.getEntries(JarBuilder.java:1093)
at org.pantsbuild.tools.jar.JarBuilder.write(JarBuilder.java:1009)
at org.pantsbuild.tools.jar.Main.doRun(Main.java:401)
at org.pantsbuild.tools.jar.Main.run(Main.java:367)
at org.pantsbuild.tools.jar.Main.main(Main.java:481)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.martiansoftware.nailgun.NGSession.run(NGSession.java:280)
FAILURE: jar-tool failed
This happens for all cases when I try to bundle/jar a JVM/Java target. I have recently upgraded from 1.17 to 1.26 (migrating py2 to py3). Hopefully there is something simple that I need to change.jolly-midnight-72759
05/28/2020, 3:40 PMpants.toml
format:
[GLOBAL]
backend_packages2.add = [
"loop",
"de",
]
Returns Expected "=", Whitespace, or [a-z], [A-Z], [0-9], "-", "_" but "." found.
for the third line. Removing .add
produces valid TOML according to this linter. Is the linter broken? (https://www.toml-lint.com/)flat-zoo-31952
05/28/2020, 8:24 PMinterpreter_search_paths = ['<PYENV>', '<PEXRC>', '<PATH>']
is there a way to force pants to use a desired interpreter? or even reliably output which one it's using?aloof-angle-91616
05/28/2020, 8:25 PM-ldebug
to the command line should output the selected interpreter as a debug statement in the select interpreter task. i haven’t used the <PYENV> syntax so i’ll have to let someone else take that.hundreds-father-404
05/28/2020, 8:25 PMinterpreter_search_paths = ['<PYENV>']
work? That will only expose Pyenv paths to Pants.
Also, which version of Pants are you using? We recently added <PYENV_LOCAL>
so that running pyenv local
will be picked up by Pants.witty-crayon-22786
05/28/2020, 8:26 PMflat-zoo-31952
05/28/2020, 8:27 PMflat-zoo-31952
05/28/2020, 8:28 PM./pants clean-all
and then the repl command again and got the one i wantedhundreds-father-404
05/28/2020, 8:28 PMhundreds-father-404
05/28/2020, 8:29 PMwitty-crayon-22786
05/28/2020, 8:29 PMflat-zoo-31952
05/28/2020, 8:29 PM