-
Notifications
You must be signed in to change notification settings - Fork 604
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
dirs, many: detect snapd libexecdir location #15215
dirs, many: detect snapd libexecdir location #15215
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #15215 +/- ##
==========================================
+ Coverage 78.09% 78.13% +0.04%
==========================================
Files 1190 1187 -3
Lines 158458 159077 +619
==========================================
+ Hits 123746 124296 +550
- Misses 27017 27048 +31
- Partials 7695 7733 +38
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Fri Mar 21 12:16:17 UTC 2025 Failures:Preparing:
Executing:
Restoring:
|
c4b9271
to
5ab1eef
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really like how this makes the code care less about the name of the distro and more about the files on disk.
5ab1eef
to
38b8cff
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks
Signed-off-by: Maciej Borzecki <maciej.borzecki@canonical.com>
Follow the same approach as for snap mount directory and detect snapd libexecdir by inspecting which paths are present in the system. Signed-off-by: Maciej Borzecki <maciej.borzecki@canonical.com>
Make sure that the detection matches what we expected on known distributions. Signed-off-by: Maciej Borzecki <maciej.borzecki@canonical.com>
Signed-off-by: Maciej Borzecki <maciej.borzecki@canonical.com>
Signed-off-by: Maciej Borzecki <maciej.borzecki@canonical.com>
Signed-off-by: Maciej Borzecki <maciej.borzecki@canonical.com>
38b8cff
to
f9635be
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this is better IMO
Similarly as we do with snap mount directory, attempt to detect that correct path for snapd libexecdir by inspecting the host filesystem.
Followup PR to #15206.
Related: SNAPDENG-34646