Closed jarhodes314 closed 1 month ago
Attention: Patch coverage is 62.24490%
with 74 lines
in your changes are missing coverage. Please review.
Project coverage is 77.9%. Comparing base (
2fad9e8
) to head (c89b62a
). Report is 20 commits behind head on main.
:white_check_mark: Passed | :x: Failed | :next_track_button: Skipped | Total | Pass % | :stopwatch: Duration |
---|---|---|---|---|---|
433 | 0 | 3 | 433 | 100 | 55m24.316861999s |
Proposed changes
tedge init
was blindly recreating symlinks for the tedge components, even if those symlinks existed. This was causing problems running thin-edge on read-only file-systems. This PR adds checks to establish if the symlinks need to change, and avoids changing them if not. It also makes a similar change to some permission changes further through the process.Testing on my local machine, I can now run
tedge init
successfully with the default settings without usingsudo
, so it doesn't appear to be attempting to modify any files following these changes.Types of changes
Paste Link to the issue
2873
Checklist
cargo fmt
as mentioned in CODING_GUIDELINEScargo clippy
as mentioned in CODING_GUIDELINESFurther comments