-
Notifications
You must be signed in to change notification settings - Fork 355
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
Add rootless option for spec #350
Conversation
Reference: runc |
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.
Otherwise LGTM
src/commands/spec_json.rs
Outdated
for ns in spec | ||
.linux() | ||
.as_ref() | ||
.unwrap() |
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.
Can we not use unwrap
? I know it may take a few more line to return results, but let's avoid unwrap in general.
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.
Can we not use
unwrap
? I know it may take a few more line to return results, but let's avoid unwrap in general.
how about use unwrap_or
?
Codecov Report
@@ Coverage Diff @@
## main #350 +/- ##
==========================================
- Coverage 70.45% 69.33% -1.13%
==========================================
Files 46 48 +2
Lines 6844 7118 +274
==========================================
+ Hits 4822 4935 +113
- Misses 2022 2183 +161 |
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.
Awesome!
Will generate a config.json for rootless.