Skip to content

cached resolution: Incremental update remove scoped from evicted libs #2435

@romanowski

Description

@romanowski

Steps:
Small repro can be found here: https://github.com/romanowski/sbt-problems/tree/incremental-update-scopes

Problem:
If incremental update is on when given lib is evicted all extra scopes are dropped.

lazy val a = project settings(
    myResolver,
    updateOptions := updateOptions.value.withCachedResolution(true), //comment this line to make ws compile
    libraryDependencies += "a" % "b" % "1.0.0" % "compile->runtime",
    libraryDependencies += "a" % "b" % "1.0.0" % "compile->runtime2 "
)

lazy val b = project dependsOn(a) settings(
    myResolver,
    updateOptions := updateOptions.value.withCachedResolution(true), //comment this line to make ws compile
    libraryDependencies += "a" % "b" % "1.0.1" % "compile->runtime"
)

Expectations
Incremental update will preserve scopes declared in evicted libs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions