Fork me on GitHub
#gratitude
<
2022-09-21
>
genekim16:09:22

Thank you to @alexmiller and @dharrigan for this 2019 post on diagnosing and eventually fixing an issue with a Google Protobuf issue — https://clojurians.slack.com/archives/C064BA6G2/p1561995274335100 While taking a break from writing last night, I was pulling my hair out while trying to get Google Secret Manager library working for the first time (to avoid putting secrets in places I shouldn’t), and was getting errors like boolean com.google.protobuf.GeneratedMessageV3.isStringEmpty. Many rabbit holes, including learning about but not fully understanding Maven POM extensions (thx @seancorfield), etc. The revealed hint: it’s likely a classpath issue. I ran the code in clj, and to my shock, it worked. Therefore, it was an IntelliJ Cursive REPL classpath issue. I switched the REPL session to use deps aliases, instead of using IntelliJ classpath. So thank you for the incredible knowledge in Clojurians Slack!

gratitude 2
genekim16:09:09

@seancorfield I ran into this post by you: https://ask.clojure.org/index.php/10892/add-support-for-bom-bill-of-materials-dependencies 🙂 (Are BOMs supported now in deps.edn? I tried :extension "pom" or something like that in deps.edn, and it didn’t result in an error. But by that point, I was way in the weeds, out of my depths, and had no idea whether it actually did anything…). cc @alexmiller

Alex Miller (Clojure team)16:09:59

No, not at the top level. I've actually done some work on this and was getting ready to merge it, but I had second thoughts about it

genekim16:09:01

Super, thanks! (Mind you, this is the furthest thing from a request — I barely know what it is, let alone know the potential utility of it. 🙂

Alex Miller (Clojure team)16:09:03

Tdeps is tolerant of finding a transitive bom maven dep and I think does the right thing in that case, but I'm not positive

Alex Miller (Clojure team)16:09:16

There is a real need here but it intersects with managed deps ideas and other things and I think maybe there are some solutions that could address multiple

Alex Miller (Clojure team)16:09:39

So, it is on a back burner till I get back to it