-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with duct/include reader macro / config.edn #23
Comments
Thanks for finding and investigating this issue. Are you running this via Could you provide the command you used to run the docker container? |
@weavejester Yes, its run through standard I have set it up through docker-compose, but the corresponding docker command would be
|
What image are you using? |
Yes. |
Hi, I'd like to contribute to this discussion. I was planning on creating a new issue, but stumbled upon this one. I already wrote my issue offline so I'll post it here: The
When trying to add a test profile, I add it the same way.
But instead of including the
This is really problematic for Ducts design / conventions. This will cause users Does
The second option would be a breaking change for core. However it does have my preference. |
Just started fiddling with duct and integrant, so please bear with a beginner here. I have stumbled upon what I believe may be an issue related to the duct/include reader macro.
I created a standard duct project. It works as expected from the repl:
When I embed the same files in a docker container (clojure:openjdk-8) under
/home/runner/backend
and run the repl yields this unexpected result:This error eventually leads to this line in resources/backend/config.edn:
Following the implementation of the duct/include reader macro reveals that duct/include processes argument "dev" through config-resource:
Investigating this from the repl in the working project I find that:
while inside the container the repl gives me:
clearly when in the docker container (io/resource path) maps to the dev directory in the project root which is not a slurp-able resource (slurped in duct/make-include):
One must conclude that the project root is somehow added to the resource search list inside the container. I sure did not put it there, and my Java-fu is not good enough to perceive how it got there, or if it is supposed to be there in the first place.
Fixing this is easy enough by being more precise with with the include statement in config.edn like this:
The questions that arise are:
my project.clj mentions only
:resource-paths ["resources" "target/resources"]
:resource-paths ["dev/resources"]
so I have no clue how the project root (containing the project.clj file) got into the mix..
Any enlightenment is highly appreciated :-)
The text was updated successfully, but these errors were encountered: