Skip to content
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

Separate out -main function to allow more granular access to intermediate values #95

Closed
cursive-ide opened this issue May 10, 2023 · 0 comments · Fixed by #96
Closed

Comments

@cursive-ide
Copy link
Contributor

This follows on from the discussion at #88.

In embedded situations, it can be useful to be able to identify which of the cpcache files correspond to a particular configuration. For example, for Cursive to do its thing I'll need to read in the .libs file since the -Stree output doesn't have enough information, and the CLI doesn't provide any way to get more detail out of it. However, there's no way to figure out the checksum for a particular configuration at the moment.

It would be useful to break up the initial part of -main into functions that calculate the various requirements (cache-dir, config-paths etc) and also calculate the checksum so that I can figure out which file from the cpcache corresponds to a particular configuration.

cursive-ide pushed a commit to cursive-ide/deps.clj that referenced this issue May 10, 2023
cursive-ide pushed a commit to cursive-ide/deps.clj that referenced this issue May 10, 2023
borkdude pushed a commit that referenced this issue May 11, 2023
…iate values (#96)

* Separate out -main function to allow more granular access to intermediate values
Fixes #95

* Pass intermediate parameters values explicitly, rather than recalculating.

---------

Co-authored-by: Colin Fleming <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant