This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-08-02
Channels
- # announcements (6)
- # beginners (35)
- # calva (5)
- # cider (3)
- # clj-http (1)
- # clj-kondo (52)
- # clojure (51)
- # clojure-conj (2)
- # clojure-europe (28)
- # clojure-losangeles (1)
- # clojure-norway (8)
- # clojure-uk (2)
- # cursive (12)
- # datalevin (2)
- # datomic (38)
- # emacs (7)
- # events (5)
- # gratitude (1)
- # humbleui (7)
- # hyperfiddle (23)
- # jobs (1)
- # off-topic (6)
- # portland-or (1)
- # rdf (3)
- # releases (2)
- # xtdb (3)
In the misty morning, on the edge of time We've lost the rising sun, a final sign As the misty morning rolls away to die https://genius.com/11502328/Black-sabbath-children-of-the-sea/Reaching-for-the-stars-we-blind-the-sky
moien
good morning
I wrote an oddly spelled commit message yesterday
and today, I'm wondering if I spelt 'children' correctly
maybe it's a good thing it's the last day before holidays
If I have a config file that points to a data file that has some data that I want to load. Most of the time it will be one of the standard files that I've helpfully packaged in a jar/repo and is on the classpath. Some times it will be an override file on the local filesystem. How would you go about loading the resource or local file transparently? (my io fu is failing me)
I think what you're looking for is a URI, whether it's a file or classpath thing, both can be described using a URI
$ bb -e '(.toUri (fs/path "."))'
#object[java.net.URI 0x6e353220 "file:///Users/borkdude/dev/clj-kondo/./"]
user=> (.toURI ( "clojure/core.clj"))
#object[java.net.URI 0x23c650a3 "jar:file:/Users/borkdude/.m2/repository/org/clojure/clojure/1.12.0-beta1/clojure-1.12.0-beta1.jar!/clojure/core.clj"]
You can always learn something here.
If you use resources, note that they have priority, so if you observe that e.g. dev-rerouces
is ahead of resources
, you can have an identically-named file in dev-resources
and it will take precedence.
And you can gitignore it, often makes sense for overrides

Morning