depstar

Discussion around https://github.com/seancorfield/depstar
2020-10-14T03:24:28.016500Z

Sure. Sorry about being so vague. I added this to my deps.edn:

:aliases {:depstar
           {:extra-deps
            {seancorfield/depstar {:mvn/version "1.1.128"}}}}
Then I used this command to build the uberjar
clojure -M:depstar -m hf.depstar.uberjar TilapalvelutApi.jar -C -m tilapalvelut-api.main
What I got was
Exception in thread "main" java.io.FileNotFoundException: Could not locate hf/depstar/uberjar__init.class, hf/depstar/uberjar.clj or hf/depstar/uberjar.cljc o
n classpath.          

2020-10-14T03:25:05.016700Z

However, after upgrading Clojure version it worked.

2020-10-14T03:26:44.016900Z

Maybe it’s the command line arguments.

2020-10-14T03:28:47.017100Z

Someone mentioned I should have used -A instead of -M

seancorfield 2020-10-14T03:33:35.017300Z

@matti.uusitalo Yeah, the -M option hadn't used to bring in extra deps etc, whereas it does in the new CLI.

seancorfield 2020-10-14T03:34:54.017500Z

-A still runs main opts but it won't at some point -- so using -M now you've upgraded the CLI is the right approach.

seancorfield 2020-10-14T03:35:05.017700Z

I'll update the depstar README to make that clear.

seancorfield 2020-10-14T03:36:37.017900Z

Updated!

2020-10-14T03:37:12.018100Z

Thanks! I was really confused why it wouldn’t work. In hindsight I probably should have looked at the CLI documentation to find out why.

seancorfield 2020-10-14T03:37:15.018300Z

There are lots of changes between the 1.10.1.561 and 1.10.1.697 versions of the CLI tools.

seancorfield 2020-10-14T03:37:54.018500Z

Nah, my fault. I remembered to update the https://github.com/seancorfield/clj-new README with a note about the version. I forgot to update depstar.

2020-10-14T03:40:30.018800Z

Well, I wouldn’t lay blame on you. After all you’re maintaining a great tool that the community can use for free.

2020-10-14T03:41:22.019Z

actually many great tools to be exact

seancorfield 2020-10-14T03:51:59.019200Z

Yeah, but I'm the one who updated those READMEs to use options that no longer work for older CLIs 🙂 I sometimes forgot that not everyone stays on the bleeding edge like I do (we already have 1.10.1.708 on our production servers I think and 1.10.1.716 on our dev/QA systems -- and we're running Clojure 1.10.2-alpha2 in production).