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

The output of the doc task is cached only after second run #4407

Open
1 task done
2m opened this issue Oct 6, 2018 · 1 comment
Open
1 task done

The output of the doc task is cached only after second run #4407

2m opened this issue Oct 6, 2018 · 1 comment
Labels

Comments

@2m
Copy link
Member

2m commented Oct 6, 2018

steps

Make a project with one Scala source file and an empty build definition:

File: project/build.properties

sbt.version=1.2.4

File: File: src/main/scala/Main.scala

object Main {}

Run the following commands:

─╼ sbt -no-global                                                                         sbt:simple> clean
[success] Total time: 0 s, completed Oct 6, 2018 2:48:53 PM
sbt:simple> doc
[info] Updating ...
[info] Done updating.
[info] Main Scala API documentation to /home/martynas/projects/sbt-sandbox/simple/target/scala-2.12/api...
model contains 2 documentable templates
[info] Main Scala API documentation successful.
[success] Total time: 1 s, completed Oct 6, 2018 2:48:55 PM
sbt:simple> doc
[info] Main Scala API documentation to /home/martynas/projects/sbt-sandbox/simple/target/scala-2.12/api...
model contains 2 documentable templates
[info] Main Scala API documentation successful.
[success] Total time: 0 s, completed Oct 6, 2018 2:48:56 PM
sbt:simple> doc
[success] Total time: 0 s, completed Oct 6, 2018 2:48:57 PM

problem

The result of the doc task was cached after the second run.

expectation

The result of the doc task is cached after the first run.

notes

sbt version: 1.2.4, 1.2.0, 1.1.0, 1.0.0
The last sbt version that expectation holds was 0.13.17.

@eed3si9n
Copy link
Member

eed3si9n commented Oct 8, 2018

Thanks for the report. Sounds like we have a caching bug.

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

2 participants