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

boot show -u fails when SNAPSHOT dependencies present #19

Closed
micha opened this issue Nov 20, 2014 · 0 comments
Closed

boot show -u fails when SNAPSHOT dependencies present #19

micha opened this issue Nov 20, 2014 · 0 comments
Labels
Milestone

Comments

@micha
Copy link
Contributor

micha commented Nov 20, 2014

Thanks @whodidthis for reporting the issue. This repo whodidthis/boot-show-u demonstrates the problem.

Description of Problem

Lein project [example.checkout "0.1.0-SNAPSHOT"] installed locally. Boot project has dependency on the Lein project.

build.boot

#!/usr/bin/env boot

(set-env!
  :src-paths #{"src"}
  :dependencies '[[adzerk/boot-cljs "0.0-2371-25"]
                  [example.checkout "0.1.0-SNAPSHOT"]])

(require '[adzerk.boot-cljs :refer :all])

(task-options!
  pom [:project 'boot-show-u
       :version "0.1.0-SNAPSHOT"])

To reproduce the error:

$ boot -V
#https://github.com/boot-clj/boot
#Thu Nov 20 10:21:50 EST 2014
BOOT_CLOJURE_VERSION=1.6.0
BOOT_VERSION=2.0.0-pre24
$ boot show -u
                                  clojure.lang.ExceptionInfo: org.sonatype.aether.resolution.DependencyResolutionException: Failed to collect dependencies for
 [#<Dependency adzerk:boot-cljs:jar:RELEASE (compile)> #<Dependency example.checkout:example.checkout:jar:RELEASE (compile)>]
    data: {:file
           "/var/folders/5m/8zs_v2nx3sz_r3bt_nj9344h0000gn/T/boot.user3825422000268151430.clj",
           :line 17}
                     java.util.concurrent.ExecutionException: org.sonatype.aether.resolution.DependencyResolutionException: Failed to collect dependencies for
 [#<Dependency adzerk:boot-cljs:jar:RELEASE (compile)> #<Dependency example.checkout:example.checkout:jar:RELEASE (compile)>]
org.sonatype.aether.resolution.DependencyResolutionException: Failed to collect dependencies for [#<Dependency adzerk:boot-cljs:jar:RELEASE (compile)> #<Depen
dency example.checkout:example.checkout:jar:RELEASE (compile)>]
    result: #<DependencyResult [adzerk:boot-cljs:jar:0.0-2371-25 < /Users/micha/.m2/repository (enhanced)]>
org.sonatype.aether.collection.DependencyCollectionException: Failed to collect dependencies for [#<Dependency adzerk:boot-cljs:jar:RELEASE (compile)> #<Depen
dency example.checkout:example.checkout:jar:RELEASE (compile)>]
    result: #<CollectResult [adzerk:boot-cljs:jar:0.0-2371-25 (compile)]>
  org.sonatype.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for example.checkout:example.checkout:jar:RELEASE
    result: #<ArtifactDescriptorResult example.checkout:example.checkout:jar:RELEASE -> []>
   org.sonatype.aether.resolution.VersionResolutionException: Failed to resolve version for example.checkout:example.checkout:jar:RELEASE
    result: #<VersionResult null @ null>
                 org.apache.maven.repository.internal.DefaultVersionResolver.resolveVersion           DefaultVersionResolver.java:  287
               org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom  DefaultArtifactDescriptorReader.java:  250
org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor  DefaultArtifactDescriptorReader.java:  186
                       org.sonatype.aether.impl.internal.DefaultDependencyCollector.process       DefaultDependencyCollector.java:  412
           org.sonatype.aether.impl.internal.DefaultDependencyCollector.collectDependencies       DefaultDependencyCollector.java:  240
              org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies          DefaultRepositorySystem.java:  333
                                                                                        ...
                                          cemerick.pomegranate.aether/resolve-dependencies*                            aether.clj:  720
                                                                                        ...
                                                                         clojure.core/apply                              core.clj:  624
                                           cemerick.pomegranate.aether/resolve-dependencies                            aether.clj:  729
                                                                                        ...
                                                          boot.aether/resolve-dependencies*                            aether.clj:   73
                                                                                        ...
                                                                         clojure.core/apply                              core.clj:  624
                                                                    clojure.core/memoize/fn                              core.clj: 5846
                                                                                        ...
                                                           boot.aether/resolve-dependencies                            aether.clj:   92
                                                                                        ...
                                                                         clojure.core/apply                              core.clj:  624
                                                                      boot.pod/eval-fn-call                               pod.clj:  174
                                                                           boot.pod/call-in                               pod.clj:  181
                                                                                        ...
                                                                           boot.pod/call-in                               pod.clj:  184
                                                                       boot.pod/call-worker                               pod.clj:  189
                                                              boot.pod/resolve-dependencies                               pod.clj:  220
                                                                          boot.pod/outdated                               pod.clj:  240
                                                                                        ...
                                                          boot.task.built-in/fn/fn/fn/fn/fn                          built_in.clj:  113
                                                             boot.task.built-in/fn/fn/fn/fn                          built_in.clj:  109
                                                                        boot.core/run-tasks                              core.clj:  327
                                                                       boot.user/eval134/fn      boot.user3825422000268151430.clj:   19
                                                        clojure.core/binding-conveyor-fn/fn                              core.clj: 1910
                                                                                        ...

Workaround

This issue appears to be related to boot -u and snapshot dependencies that are installed locally. The issue can be worked around by adding the -s (--snapshots) option:

$ boot show -us
@micha micha added the Bug label Nov 20, 2014
@micha micha added this to the 2.0.0-rc1 milestone Nov 20, 2014
@micha micha closed this as completed in 2f76bdf Nov 21, 2014
micha added a commit that referenced this issue Nov 21, 2014
Conflicts:
	version.properties
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant