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

failed to fetch on local/root project coordinate #33

Closed
dharrigan opened this issue Oct 8, 2020 · 4 comments
Closed

failed to fetch on local/root project coordinate #33

dharrigan opened this issue Oct 8, 2020 · 4 comments

Comments

@dharrigan
Copy link
Contributor

Hi,

I pull in several other custom libraries by specifying the :local/root directive in my deps.edn.

For example, in my deps.edn:

:base {:extra-deps {local-base/local-base {:local/root "/home/david/.clojure/libs/local.base" :deps/manifest :deps}}}
:rebel {:extra-deps {local-nrepl/local-nrepl {:local/root "/home/david/.clojure/libs/local.nrepl" :deps/manifest :deps}
                     local-rebel/local-rebel {:local/root "/home/david/.clojure/libs/local.rebel" :deps/manifest :deps}}
        :main-opts ["-m" "local.rebel.main"]}

When antq is run against the deps.edn, the following is shown:


|    :file |                   :name | :version | :latest-version |
|----------+-------------------------+----------+-----------------|
| deps.edn |   local-base/local-base |          | Failed to fetch |
|          | local-nrepl/local-nrepl |          | Failed to fetch |
|          | local-rebel/local-rebel |          | Failed to fetch |

Perhaps :local/root should be ignored as part of the resolution process?

Thank you!

-=david=-

@liquidz
Copy link
Owner

liquidz commented Oct 8, 2020

@dharrigan Thanks for your reporting!

Perhaps :local/root should be ignored as part of the resolution process?

You're right. I'll fix to ignore.

@liquidz
Copy link
Owner

liquidz commented Oct 8, 2020

@dharrigan I fixed in dev branch.
Could you try?

  • checkout dev branch
  • run make uberjar to generate target/antq-standalone.jar
  • run java -jar /path/to/your/antq/repo/target/antq-standalone.jar in your project directory

@dharrigan
Copy link
Contributor Author

dharrigan commented Oct 8, 2020

Hi,

Looks good!

On dev branch:

❯ cd .clojure                                                                                                                                        
❯ java -jar $HOME/tmp/antq/target/antq-standalone.jar
All dependencies are up-to-date.

On master branch:

❯ cd .clojure                                                                                                                                        
❯ java -jar $HOME/tmp/antq/target/antq-standalone.jar
|    :file |                   :name | :version | :latest-version |
|----------+-------------------------+----------+-----------------|
| deps.edn |   local-base/local-base |          | Failed to fetch |
|          | local-nrepl/local-nrepl |          | Failed to fetch |
|          | local-rebel/local-rebel |          | Failed to fetch |

All good! Thank you for the prompt turnaround!

-=david=-

@liquidz
Copy link
Owner

liquidz commented Oct 8, 2020

@dharrigan Thanks for your confirmation!

I just released ver 0.7.4 #34

@liquidz liquidz closed this as completed Oct 10, 2020
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

No branches or pull requests

2 participants