mirror of
https://github.com/Mic92/sops-nix.git
synced 2025-12-26 22:24:59 +08:00
fix wsl lints
This commit is contained in:
parent
4bc1bfdec2
commit
d1b8b2a00a
2 changed files with 3 additions and 0 deletions
|
|
@ -1198,6 +1198,7 @@ func parseFlags(args []string) (*options, error) {
|
|||
}
|
||||
|
||||
var checkMode string
|
||||
|
||||
fs.StringVar(&checkMode, "check-mode", "off", `Validate configuration without installing it (possible values: "manifest","sopsfile","off")`)
|
||||
fs.BoolVar(&opts.ignorePasswd, "ignore-passwd", false, `Don't look up anything in /etc/passwd. Causes everything to be owned by root:root or the user executing the tool in user mode`)
|
||||
|
||||
|
|
@ -1404,6 +1405,7 @@ func installSecrets(args []string) error {
|
|||
if isDry {
|
||||
return nil
|
||||
}
|
||||
|
||||
if err := symlinkSecretsAndTemplates(manifest.SymlinkPath, manifest.Secrets, manifest.Templates, manifest.UserMode); err != nil {
|
||||
return fmt.Errorf("failed to prepare symlinks to secret store: %w", err)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -60,6 +60,7 @@ func testAssetPath() string {
|
|||
if assets != "" {
|
||||
return assets
|
||||
}
|
||||
|
||||
_, filename, _, _ := runtime.Caller(0)
|
||||
return path.Join(path.Dir(filename), "test-assets")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue