Open mjoerg opened 3 years ago
OK, looks like we've got one bug and one UX issue here:
straight-check-package
invalidates the recipe cache, which then leads to you being prompted to reload the init-file (UX issue, since this should be nondestructive but is nonetheless annoying)Thank you for the detailed report!
Oh, and a quick note since it probably isn't obvious to anyone who didn't write the code---but the reason straight-check-package
invalidates the recipe cache is because it operates by calling straight-use-package
, which (in the general case) could add a new package, or reconfigure an existing one. I guess we could update straight-check-package
so it calls directly through to the modification detection and build system layer, rather than going all the way from the top.
What's wrong
When calling
straight-check-package
a subsequent call tostraight-freeze-versions
will prompt to reload the init file and if confirmed will result in package dependencies missing from the generated lockfile.Directions to reproduce
M-x create-bug-report
y
for prompt "Caches are outdated, reload init-file? (y or n)"This demonstrates the issue by setting up package
f.el
and then callsstraight-check-package
andstraight-freeze-versions
. The generated lockfile missesdash.el
ands.el
.Output from my setup
straight.el
2021-01-16 01:52:42
gnu/linux
prerelease (HEAD -> develop, origin/develop) 8ba8ea9 2021-01-14
GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.22, cairo version 1.17.3) of 2020-08-28
f.el
):Version information