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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve remote cache extract log message #5996

Merged
merged 1 commit into from Oct 21, 2020

Commits on Oct 20, 2020

  1. improve remote cache extract log message

    build.sbt
    
    ```
    lazy val common = Def.settings(
      scalaVersion := "2.12.12",
      pushRemoteCacheTo := Some(
        MavenCache("local-cache", (ThisBuild / baseDirectory).value / "remote-cache")
      ),
      remoteCacheId := "fixed-id",
      remoteCacheIdCandidates := Seq(remoteCacheId.value)
    )
    
    pushRemoteCache := {}
    pullRemoteCache := {}
    
    lazy val p1 = project.settings(common)
    lazy val p2 = project.settings(common)
    lazy val p3 = project.settings(common)
    lazy val p4 = project.settings(common)
    lazy val p5 = project.settings(common)
    lazy val p6 = project.settings(common)
    lazy val p7 = project.settings(common)
    lazy val p8 = project.settings(common)
    lazy val p9 = project.settings(common)
    ```
    
    run: `sbt pushRemoteCache clean pullRemoteCache`
    
    before
    
    ```
    [info] remote cache artifact extracted for Some(cached-compile)
    [info] remote cache artifact extracted for Some(cached-compile)
    [info] remote cache artifact extracted for Some(cached-compile)
    [info] remote cache artifact extracted for Some(cached-compile)
    [info] remote cache artifact extracted for Some(cached-compile)
    [info] remote cache artifact extracted for Some(cached-compile)
    [info] remote cache artifact extracted for Some(cached-test)
    [info] remote cache artifact extracted for Some(cached-test)
    [info] remote cache artifact extracted for Some(cached-test)
    [info] remote cache artifact extracted for Some(cached-test)
    [info] remote cache artifact extracted for Some(cached-test)
    [info] remote cache artifact extracted for Some(cached-test)
    [info] remote cache artifact extracted for Some(cached-compile)
    [info] remote cache artifact extracted for Some(cached-test)
    [info] remote cache artifact extracted for Some(cached-compile)
    [info] remote cache artifact extracted for Some(cached-test)
    [info] remote cache artifact extracted for Some(cached-compile)
    [info] remote cache artifact extracted for Some(cached-test)
    ```
    
    after
    
    ```
    [info] remote cache artifact extracted for p2:p2:0.0.0-fixed-id Some(cached-compile)
    [info] remote cache artifact extracted for p9:p9:0.0.0-fixed-id Some(cached-compile)
    [info] remote cache artifact extracted for p8:p8:0.0.0-fixed-id Some(cached-compile)
    [info] remote cache artifact extracted for p7:p7:0.0.0-fixed-id Some(cached-compile)
    [info] remote cache artifact extracted for p5:p5:0.0.0-fixed-id Some(cached-compile)
    [info] remote cache artifact extracted for p1:p1:0.0.0-fixed-id Some(cached-compile)
    [info] remote cache artifact extracted for p5:p5:0.0.0-fixed-id Some(cached-test)
    [info] remote cache artifact extracted for p7:p7:0.0.0-fixed-id Some(cached-test)
    [info] remote cache artifact extracted for p2:p2:0.0.0-fixed-id Some(cached-test)
    [info] remote cache artifact extracted for p8:p8:0.0.0-fixed-id Some(cached-test)
    [info] remote cache artifact extracted for p9:p9:0.0.0-fixed-id Some(cached-test)
    [info] remote cache artifact extracted for p1:p1:0.0.0-fixed-id Some(cached-test)
    [info] remote cache artifact extracted for p3:p3:0.0.0-fixed-id Some(cached-compile)
    [info] remote cache artifact extracted for p3:p3:0.0.0-fixed-id Some(cached-test)
    [info] remote cache artifact extracted for p4:p4:0.0.0-fixed-id Some(cached-compile)
    [info] remote cache artifact extracted for p4:p4:0.0.0-fixed-id Some(cached-test)
    [info] remote cache artifact extracted for p6:p6:0.0.0-fixed-id Some(cached-compile)
    [info] remote cache artifact extracted for p6:p6:0.0.0-fixed-id Some(cached-test)
    ```
    xuwei-k committed Oct 20, 2020
    Copy the full SHA
    37fa557 View commit details
    Browse the repository at this point in the history