Replies: 1 comment 2 replies
-
@szmarci You would need to compare the hashes of both next builds to determine why. It's most likely that 1 of the inputs slightly changed. You can compare it with |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am tinkering with the example repo: https://github.com/moonrepo/examples
When I first run
moon run :build
, I getTasks: 12 completed
, which is expected it is the first run.Then I go and change something in the
browser-package
:I added the
+ 2
.I run
moon run :build
again, I get12 completed (6 cached)
, which is also fine, cause 5 project references this package + the package itself changed, that accounts for the 6 rebuild.Then I revert my changes in the
browser-package
and runmoon run :build
.This time I get
12 completed (11 cached)
and according to the logs, the nextjs app was the one that was rebuilt.▪▪▪▪ nextjs-app:build (8s 156ms, 9a8edaaf)
Shouldn't all come from the cache? The code is in the same state it was before the change I did.
Why nextjs is rebuilt?
Beta Was this translation helpful? Give feedback.
All reactions