wonderful-yak-59945
02/23/2022, 6:42 AM"file": null
for it which the post processing script seems to be choking on)wonderful-yak-59945
02/23/2022, 6:43 AMwonderful-yak-59945
02/23/2022, 6:44 AM{
"coord": "javax.media:jai_core:1.1.3",
"file": null,
"directDependencies":
[],
"dependencies":
[]
},
happy-kitchen-89482
02/23/2022, 7:03 AMfast-nail-55400
02/23/2022, 12:04 PMhappy-kitchen-89482
02/23/2022, 4:05 PMhappy-kitchen-89482
02/23/2022, 4:06 PMhappy-kitchen-89482
02/23/2022, 4:07 PMancient-vegetable-10556
02/23/2022, 4:07 PMhappy-kitchen-89482
02/23/2022, 4:07 PMhappy-kitchen-89482
02/23/2022, 4:08 PMhappy-kitchen-89482
02/23/2022, 4:14 PMancient-vegetable-10556
02/23/2022, 4:15 PMjavax
package; I don’t suppose it’s something that comes with a default distribution or something?happy-kitchen-89482
02/23/2022, 4:15 PMhappy-kitchen-89482
02/23/2022, 4:15 PMhappy-kitchen-89482
02/23/2022, 4:15 PMhappy-kitchen-89482
02/23/2022, 4:16 PMancient-vegetable-10556
02/23/2022, 4:17 PMancient-vegetable-10556
02/23/2022, 4:17 PMhappy-kitchen-89482
02/23/2022, 4:17 PMancient-vegetable-10556
02/23/2022, 4:18 PMancient-vegetable-10556
02/23/2022, 4:18 PMwonderful-yak-59945
02/23/2022, 4:20 PM<https://repo.osgeo.org/repository/release>
ancient-vegetable-10556
02/23/2022, 4:20 PMancient-vegetable-10556
02/23/2022, 4:21 PMCOURSIER_REPOSITORIES
envvar into our CoursierWrapperProcess
invocations, but it should be easy enough to do.ancient-vegetable-10556
02/23/2022, 4:22 PMhappy-kitchen-89482
02/23/2022, 4:30 PMhappy-kitchen-89482
02/23/2022, 4:31 PMwonderful-yak-59945
02/23/2022, 4:34 PMwonderful-yak-59945
02/23/2022, 4:35 PMancient-vegetable-10556
02/23/2022, 4:47 PMancient-vegetable-10556
02/23/2022, 4:48 PMancient-vegetable-10556
02/23/2022, 4:48 PMancient-vegetable-10556
02/23/2022, 4:51 PMancient-vegetable-10556
02/23/2022, 4:53 PMosgeo
repo ahead of maven-central in your config file?wonderful-yak-59945
02/23/2022, 4:54 PMwonderful-yak-59945
02/23/2022, 4:54 PM[coursier]
repos = [
"<https://repo.osgeo.org/repository/release>",
"<https://maven-central.storage-download.googleapis.com/maven2>",
"<https://repo1.maven.org/maven2>",
]
ancient-vegetable-10556
02/23/2022, 4:55 PMwonderful-yak-59945
02/23/2022, 4:57 PMancient-vegetable-10556
02/23/2022, 4:58 PMwonderful-yak-59945
02/23/2022, 4:59 PMwonderful-yak-59945
02/23/2022, 4:59 PMancient-vegetable-10556
02/23/2022, 4:59 PMancient-vegetable-10556
02/23/2022, 5:00 PMjavax.media:jai-tools
happy-kitchen-89482
02/23/2022, 6:03 PMhappy-kitchen-89482
02/23/2022, 6:03 PMancient-vegetable-10556
02/23/2022, 6:04 PMancient-vegetable-10556
02/23/2022, 6:04 PMivy2
cache and <http://repo1.maven.org|repo1.maven.org>
happy-kitchen-89482
02/23/2022, 6:05 PMancient-vegetable-10556
02/23/2022, 6:28 PMancient-vegetable-10556
02/23/2022, 6:35 PMwitty-crayon-22786
02/23/2022, 6:57 PMproud-dentist-22844
02/23/2022, 6:58 PMwitty-crayon-22786
02/23/2022, 6:58 PMwonderful-yak-59945
02/23/2022, 7:31 PMwonderful-yak-59945
02/23/2022, 7:33 PMwitty-crayon-22786
02/23/2022, 7:38 PM2.10.x
then, which should stabilize in the next week or soancient-vegetable-10556
02/23/2022, 8:07 PMwonderful-yak-59945
02/23/2022, 8:38 PMwonderful-yak-59945
02/23/2022, 8:38 PMancient-vegetable-10556
02/23/2022, 8:39 PMpants_from_sources
against the 2.10.x branch if you likeancient-vegetable-10556
02/23/2022, 8:39 PMancient-vegetable-10556
02/23/2022, 8:39 PMwonderful-yak-59945
02/23/2022, 8:43 PMwitty-crayon-22786
02/23/2022, 9:15 PMwitty-crayon-22786
02/23/2022, 9:16 PM781bb1bad0916eb33d3a2998675ee9e563aa4f10
… which appears to be available now, actually.wonderful-yak-59945
02/24/2022, 3:06 AM<https://repo.osgeo.org/repository/release>
repo listed in our coursier config. seems like the "coursier eagerly choosing a bad pom from repo1.maven.org" problem persists if that repo is specified in the pants configwonderful-yak-59945
02/24/2022, 3:07 AM--no-default
patch looks to do its job and pants can download and cache the jar (and subsequent resolves consume that just fine when the other repos are added back)happy-kitchen-89482
02/24/2022, 3:07 AMhappy-kitchen-89482
02/24/2022, 3:07 AMwonderful-yak-59945
02/24/2022, 3:08 AMwonderful-yak-59945
02/24/2022, 3:10 AMwonderful-yak-59945
02/24/2022, 3:11 AMhappy-kitchen-89482
02/24/2022, 3:16 AMwonderful-yak-59945
02/24/2022, 3:50 AMfast-nail-55400
02/24/2022, 3:54 AMwonderful-yak-59945
02/24/2022, 4:16 AMwonderful-yak-59945
02/24/2022, 4:16 AMhappy-kitchen-89482
02/24/2022, 4:42 AMcs fetch -r=<https://repo.osgeo.org/repository/release> -r=<https://maven-central.storage-download.googleapis.com/maven2> -r=<https://repo1.maven.org/maven2> --no-default --json-output-file=coursier_report.json org.geotools:gt-main:9.2 com.google.geometry:s2-geometry:2.0.0 com.twitter:util-logging_2.11:20.1.0 org.mongodb:bson:3.11.2 joda-time:joda-time:2.10.3 com.fasterxml.jackson.core:jackson-core:2.6.7 com.twitter:util-core_2.11:20.1.0 com.fasterxml.jackson.core:jackson-databind:2.6.7 com.vividsolutions:jts:1.12 com.fasterxml.jackson.module:jackson-module-scala_2.11:2.6.7.1 org.apache.thrift:libthrift:0.9.0 org.codehaus.jackson:jackson-core-asl:1.9.8
It works fine.happy-kitchen-89482
02/24/2022, 4:43 AMhappy-kitchen-89482
02/24/2022, 6:05 AMhappy-kitchen-89482
02/24/2022, 6:05 AMhappy-kitchen-89482
02/24/2022, 6:06 AMwonderful-yak-59945
02/24/2022, 6:12 AM~/.cache/pants/named_caches/coursier/
maybe?wonderful-yak-59945
02/24/2022, 6:12 AMwonderful-yak-59945
02/24/2022, 6:15 AM"file":null
json and breaks the post processing scriptwonderful-yak-59945
02/24/2022, 6:16 AMhappy-kitchen-89482
02/24/2022, 7:14 AMbrew install coursier/formulas/coursier
and cs setup
) and then try the raw cs fetch
command I pased abovehappy-kitchen-89482
02/24/2022, 7:14 AM~/Library/Caches/Coursier
happy-kitchen-89482
02/24/2022, 7:14 AMancient-vegetable-10556
02/24/2022, 4:11 PM~/.cache/pants
in its entirety (just to be certain ;)), using just the two repos you had configured. It might be worth seeing if it produces the same problematic resolve if you only have osgeo in placeancient-vegetable-10556
02/24/2022, 4:31 PMancient-vegetable-10556
02/24/2022, 4:32 PMjai_core
JAR as an explicit jvm_artifact
dependency (using the jar=
field to a JAR in your repo, or the url=
field pointing to the osgeo.org URL for the JAR), and configuring that as an explicit dependency of at least one java/scala source. That will pass the JAR to Coursier explicitly, and it won’t go looking for it from a remote maven repo.happy-kitchen-89482
02/24/2022, 4:47 PMhappy-kitchen-89482
02/24/2022, 4:47 PMancient-vegetable-10556
02/24/2022, 4:48 PMancient-vegetable-10556
02/24/2022, 4:49 PMhappy-kitchen-89482
02/24/2022, 4:49 PMhappy-kitchen-89482
02/24/2022, 4:50 PMcs
and empty caches and it succeededhappy-kitchen-89482
02/24/2022, 4:50 PMancient-vegetable-10556
02/24/2022, 4:50 PMancient-vegetable-10556
02/24/2022, 4:51 PMancient-vegetable-10556
02/24/2022, 4:51 PMancient-vegetable-10556
02/24/2022, 4:51 PMancient-vegetable-10556
02/24/2022, 4:52 PM/private/var/folders/0m/h2n902qn38b8555xq8z0w_h40000gn/T/process-executionaHl9Ym/.cache/jdk/https/repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.6/scala-library-2.13.6.jar
stderr:
+ coursier_exe=__coursier/./cs-x86_64-apple-darwin
+ shift
+ json_output_file=coursier_report.json
+ shift
++ pwd
+ working_dir=/private/var/folders/0m/h2n902qn38b8555xq8z0w_h40000gn/T/process-executionaHl9Ym
+ __coursier/./cs-x86_64-apple-darwin fetch -r=<https://repo.osgeo.org/repository/geotools-releases> -r=<https://maven-central.storage-download.googleapis.com/maven2> --json-output-file=coursier_report.json org.scala-lang:scala-library:2.13.6 javax.media:jai_core:1.1.3
Downloading <https://repo1.maven.org/maven2/javax/media/jai_core/1.1.3/jai_core-1.1.3.pom>
Downloading <https://repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.6/scala-library-2.13.6.pom>
Downloaded <https://repo1.maven.org/maven2/javax/media/jai_core/1.1.3/jai_core-1.1.3.pom>
Downloaded <https://repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.6/scala-library-2.13.6.pom>
Downloading <https://repo1.maven.org/maven2/javax/media/jai_core/1.1.3/jai_core-1.1.3.jar>
Downloading <https://repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.6/scala-library-2.13.6.jar>
Downloaded <https://repo1.maven.org/maven2/javax/media/jai_core/1.1.3/jai_core-1.1.3.jar>
Downloading <https://repo1.maven.org/maven2/javax/media/jai_core/1.1.3/jai_core-1.1.3.jar.sha1>
Downloaded <https://repo1.maven.org/maven2/javax/media/jai_core/1.1.3/jai_core-1.1.3.jar.sha1>
Downloaded <https://repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.6/scala-library-2.13.6.jar>
+ /bin/mkdir -p classpath
+ /Users/chrisjrn/.pyenv/versions/3.8.12/bin/python __coursier/coursier_post_processing_script.py coursier_report.json
Traceback (most recent call last):
File "__coursier/coursier_post_processing_script.py", line 13, in <module>
source = PurePath(dep['file'])
File "/Users/chrisjrn/.pyenv/versions/3.8.12/lib/python3.8/pathlib.py", line 651, in __new__
return cls._from_parts(args)
File "/Users/chrisjrn/.pyenv/versions/3.8.12/lib/python3.8/pathlib.py", line 683, in _from_parts
drv, root, parts = self._parse_args(args)
File "/Users/chrisjrn/.pyenv/versions/3.8.12/lib/python3.8/pathlib.py", line 667, in _parse_args
a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType
That’s is from yesterday — note all the `Downloading`/`Downloaded` lines. Those don’t appear in stderr if Coursier is using its cacheancient-vegetable-10556
02/24/2022, 4:54 PMhappy-kitchen-89482
02/24/2022, 4:55 PMancient-vegetable-10556
02/24/2022, 4:55 PMancient-vegetable-10556
02/24/2022, 4:57 PM<http://osgeo.org|osgeo.org>
that has jai_core
as a dependency with <http://repo1.maven.org|repo1.maven.org>
as the first repo argument, and then re-attempt with <http://osgeo.org|osgeo.org>
as the first repo argument, without blowing away the cachehappy-kitchen-89482
02/24/2022, 4:57 PMhappy-kitchen-89482
02/24/2022, 4:57 PM<https://maven-central.storage-download.googleapis.com/maven2/org/apache/httpcomponents/httpcomponents-core/4.1.4/httpcomponents-core-4.1.4.pom>
100.0% [##########] 9.5 KiB (63.7 KiB / s)
happy-kitchen-89482
02/24/2022, 4:57 PMancient-vegetable-10556
02/24/2022, 4:57 PMhappy-kitchen-89482
02/24/2022, 4:58 PMhappy-kitchen-89482
02/24/2022, 4:58 PMhappy-kitchen-89482
02/24/2022, 5:00 PMhappy-kitchen-89482
02/24/2022, 5:00 PMhappy-kitchen-89482
02/24/2022, 5:00 PMancient-vegetable-10556
02/24/2022, 5:00 PMancient-vegetable-10556
02/24/2022, 5:01 PMancient-vegetable-10556
02/24/2022, 5:01 PMancient-vegetable-10556
02/24/2022, 5:02 PMhappy-kitchen-89482
02/24/2022, 5:29 PMhappy-kitchen-89482
02/24/2022, 5:29 PMancient-vegetable-10556
02/24/2022, 5:30 PMancient-vegetable-10556
02/24/2022, 5:38 PMancient-vegetable-10556
02/24/2022, 5:41 PMCOURSIER_ARCHIVE_CACHE
value determined by the values of our repositories config, the fix I proposed yesterday should just workancient-vegetable-10556
02/24/2022, 5:41 PMhappy-kitchen-89482
02/24/2022, 5:48 PMwonderful-yak-59945
02/24/2022, 6:39 PMurl
at the correct repo manually
2. blow away ~/.cache/pants
(and ~/Library/Caches/Coursier
?) before re-running the resolve
is that roughly accurate?ancient-vegetable-10556
02/24/2022, 6:40 PMancient-vegetable-10556
02/24/2022, 7:03 PM--coursier-repos
configuration, without needing to re-download JDKs every time we change the repos configuration.
So Pants will, at the very least, be insulated against the cache poisoningancient-vegetable-10556
02/24/2022, 8:17 PMfast-nail-55400
02/24/2022, 8:18 PMancient-vegetable-10556
02/24/2022, 10:09 PMfast-nail-55400
02/24/2022, 10:12 PMancient-vegetable-10556
02/24/2022, 11:01 PMwonderful-yak-59945
02/24/2022, 11:08 PMancient-vegetable-10556
02/24/2022, 11:11 PMancient-vegetable-10556
02/25/2022, 4:53 PM