Skip to content

SNAPSHOT won't work offline #1552

@eed3si9n

Description

@eed3si9n

steps

project/build.properties

sbt.version=0.13.6-SNAPSHOT

project/plugins.sbt

ivyPaths := new IvyPaths(baseDirectory.value, Some(baseDirectory.value / "ivy-cache"))

build.sbt

ivyPaths := new IvyPaths(baseDirectory.value / "project", Some(baseDirectory.value / "project" / "ivy-cache"))

Publish sbt 0.13.6-SNAPSHOT locally then copy the cache.

$ mkdir -p project/ivy-cache/cache/org.scala-sbt
$ cp -r ~/.ivy2/cache/org.scala-sbt/ project/ivy-cache/cache/org.scala-sbt
$ sbt

problem

info] Resolving org.scala-sbt#sbt;0.13.6-SNAPSHOT ...
[warn]  module not found: org.scala-sbt#sbt;0.13.6-SNAPSHOT
[warn] ==== typesafe-ivy-snapshots: tried
[warn]   http://repo.typesafe.com/typesafe/ivy-snapshots/org.scala-sbt/sbt/0.13.6-SNAPSHOT/ivys/ivy.xml
[warn] ==== sbt-plugin-releases: tried
[warn]   http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.scala-sbt/sbt/0.13.6-SNAPSHOT/ivys/ivy.xml
[warn] ==== local: tried
[warn]   /Users/xxx/work/test/project/ivy-cache/local/org.scala-sbt/sbt/0.13.6-SNAPSHOT/ivys/ivy.xml
[warn] ==== public: tried
[warn]   https://repo1.maven.org/maven2/org/scala-sbt/sbt/0.13.6-SNAPSHOT/sbt-0.13.6-SNAPSHOT.pom
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: org.scala-sbt#sbt;0.13.6-SNAPSHOT: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn] 
[warn]  Note: Unresolved dependencies path:
[warn]          org.scala-sbt:sbt:0.13.6-SNAPSHOT
[warn]            +- default:test-build:0.1-SNAPSHOT (sbtVersion=0.13, scalaVersion=2.10)

expectation

If the module is in the cache it should use it, but only as a fallback.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions