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

"checksum does not match aborting!" but does not abort #60

Open
erlingrj opened this issue Jan 2, 2025 · 1 comment
Open

"checksum does not match aborting!" but does not abort #60

erlingrj opened this issue Jan 2, 2025 · 1 comment

Comments

@erlingrj
Copy link
Collaborator

erlingrj commented Jan 2, 2025

I am getting checksum does not match aborting! every time I call lingo build. If I try removing Lingo.lock and rerun lingo build I get:

thread 'main' panicked at src/package/management.rs:153:14:
creating lock folder failed: Permission denied (os error 13)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

This produces a new Lingo.lock and if I run lingo build again, I don't get a panic but back to checksum does not match aborting!

When I remove both Lingo.lock and build, then I can run lingo build without the error. But only then first run, every proceeding run gets the checksum error.

It seems:

  1. lingo clean should probably remove the build folder?
  2. The checksum calculation might happen at the wrong point? And should we actually abort?
@erlingrj erlingrj mentioned this issue Jan 4, 2025
@tanneberger
Copy link
Member

This is strange, so I save the hash of all files in this library in the file Lingo.lock and before I call lfc again, I check if the hash is still the same or if someone/something has tampered with it.

Either there is a problem with the implementation or some of the files have really changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants