Emit a hint when caching immutable precompiled build with --force-dirty#6948
Emit a hint when caching immutable precompiled build with --force-dirty#6948ulidtko wants to merge 1 commit into
Conversation
|
@mpilgrem please review, I hope it's an easy merge. I'll promptly address feedback, if any. I gave it a round of tests locally, seems to be conservative and uncontroversial. |
|
@ulidtko, you want Stack to remind a user that flag
I'm not sure that warning is required during the build: can't Stack work it out, upfront, once it has parsed the build targets? (I need to think about that...) EDIT1: With the currently implementation, a user only gets a warning if a build target happens to be a reusable installed package, installed in a different package database - and so only sees it once (after the resuable package is installed in the current package database, it no longer meets the criteria). If we aim to warn on the redundant use of
EDIT3: When Stack is reusing a pre-compiled package, I think to get Stack to rebuid it you have to unregister it from the package database it is coming from. If you unregister it from the package datbase it has been copied to, I think Stack will just bring over another copy on the next build. EDIT4: @ulidtko, I have an alternative to this pull request at #6949, which includes your hint but at the start of the build and is triggered more frequently. |
|
Closed, as overtaken by: |
This is a tiny UX-level addition regarding #6944 & #1476. No behavioral change, just an added log:
The Note is guarded to appear only when:
using precompiled package,--force-dirtyis supplied.