This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-01-02
Channels
- # announcements (7)
- # atom-editor (3)
- # babashka (8)
- # beginners (38)
- # biff (5)
- # calva (17)
- # cider (26)
- # clj-kondo (6)
- # clojure (49)
- # clojure-europe (47)
- # clojure-norway (19)
- # clojure-sweden (2)
- # clojure-uk (1)
- # clojurescript (22)
- # cursive (20)
- # datahike (1)
- # datomic (6)
- # etaoin (2)
- # honeysql (2)
- # hyperfiddle (36)
- # jobs-discuss (19)
- # leiningen (15)
- # malli (5)
- # off-topic (8)
- # overtone (1)
- # pathom (15)
- # pedestal (8)
- # polylith (4)
- # releases (1)
- # ring (5)
- # schema (10)
- # shadow-cljs (17)
- # timbre (3)
- # xtdb (17)
I am trying to follow https://www.pgrs.net/2011/10/30/using-local-jars-with-leiningen/, but I am actually failing on checksum:
Could not transfer artifact dev.langchain4j:langchain4j-pinecone:jar:0.26.0 from/to local (file:/Users/nsadeh/Dropbox/modeldiplomat/pinecone-sync/maven_repository/): Checksum validation failed, no checksums available
Full error:
Retrieving dev/langchain4j/langchain4j-pinecone/0.26.0/langchain4j-pinecone-0.26.0.pom from local
Retrieving dev/langchain4j/langchain4j-pinecone/0.26.0/langchain4j-pinecone-0.26.0.jar from local
Could not find artifact dev.langchain4j:langchain4j-pinecone:jar:0.26.0 in central ( )
Could not find artifact dev.langchain4j:langchain4j-pinecone:jar:0.26.0 in clojars ( )
Could not transfer artifact dev.langchain4j:langchain4j-pinecone:jar:0.26.0 from/to local (file:/Users/nsadeh/Dropbox/modeldiplomat/pinecone-sync/maven_repository/): Checksum validation failed, no checksums available
Failed to read artifact descriptor for dev.langchain4j:langchain4j-pinecone:jar:0.26.0
This could be due to a typo in :dependencies, file system permissions, or network issues.
If you are behind a proxy, try setting the 'http_proxy' environment variable.
That's a very old blog post and I expect leiningen had tightened up security regarding checksums since then.
There may be an option you can add to project.clj
to tell lein to not validate checksums (not recommended for general use but might since your specific problem).
What's considered the current way use a JAR file in a Lein build? I had to fork the Java repo to fix a bug
It's not the only thing that hasn't been working, the entire workflow has been difficult
I switched from lein
years ago so that's all I got. It's simple to use local JAR files with CLI / deps.edn
🤷:skin-tone-2:
:checksum :ignore
is the option I was thinking of... In the specific repository definition I think? You'd have to check the docs.
I ended up using https://github.com/kumarshantanu/lein-localrepo and it just worked
Yeah, I used to use that occasionally back in the day. Forgot about that... Heh, 2015 was probably when I last used lein
seriously.
So all I am actually trying to do is verify that my fix to langchain (https://github.com/langchain4j/langchain4j/pull/437) actually works. Maybe there's an easier way
You didn't have to change or add any tests for that change to pass the tests?
Is the JAR not signed at all? Security issues aside, you can set :checksum :ignore
in your project.clj
Although this should immediately fix your issue, I highly recommend against doing this. You shouldn’t deploy or rely on unsigned code IMO
@U0479UCF48H I mentioned both of those points earlier in the thread...