Skip to content

TRIAN-115: Allow JAR builds without config.edn - #152

Merged
sifbiri merged 1 commit into
mainfrom
TRIAN-115-allow-jar-builds-without-config-edn
Oct 14, 2025
Merged

sifbiri merged 1 commit into
mainfrom
TRIAN-115-allow-jar-builds-without-config-edn

Conversation

@sifbiri

@sifbiri sifbiri commented Oct 8, 2025 •

Copy link
Copy Markdown
Collaborator

Purpose

Defer handler creation and config.edn loading to runtime

Related Issues

Closes TRIAN-115

Test

clojure -X:build-uberjar without config.edn should work.


(def development-app
(defonce ^:private handler
(delay (create-handler-stack

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this will work, but why use a delay instead of turning the handler into a function? (to be fair I think i used delay in a couple spots where a function would have been simpler too!)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so we can have it run at runtime once.

@drewverlee

Copy link
Copy Markdown
Contributor

This and the accompanying Pyregence changes look good, assuming the testing worked out, hopefully we can merge this soon! Thanks sif!

@sifbiri
sifbiri merged commit d26aee8 into main Oct 14, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants