Open immoh opened 8 years ago
This is more a ticket for lein-scm-source
I think (so it can generate .scm in current dir). Alternatively Dockerfile can be generated on demand but It looks like unnecessarily complex solution.
Another way to fix this (suggested by @dryewo): modify template project.clj to include alias scm-source
for lein with-profile uberjar scm-source
. Then the file would be generated in target/uberjar and we can change the path in Dockerfile to target/uberjar/scm-source.json.
There's a problem in building docker image when using project template:
target/%s
so the location of the file is something liketarget/base+system+user+dev/scm-source.json
I guess the obvious fix is to change lein-scm-source to generate in project root instead, or make it configurable and preconfigure it in the template. I am happy to provide a PR if you think this is the correct fix.