You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: replace os calls with afero.Fs ones in nerdctlCommand (#213)
## Summary
PR fixes#158 (comment).
Besides that, it also adds a new test case, namely `"with --env-file
flag, but the specified file does not exist"`, which becomes easier to
add after the refactoring.
## Notes
`gosec` is removed from `//nolint:errcheck,gosec` because `gosec` checks
things like `os.Open` but not `fs.Open`, where `fs` is of type
`afero.Fs`. Updated the `noling` comment accordingly.
## License Acceptance
By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.
Signed-off-by: Hsing-Yu (David) Chen <[email protected]>
0 commit comments