Skip to content

Commit

Permalink
Use the new parsepath options
Browse files Browse the repository at this point in the history
  • Loading branch information
sgmiller committed Jan 14, 2025
1 parent 0c8f3fb commit bf9e3b0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ require (

require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/hashicorp/go-secure-stdlib v0.1.1-0.20250113211030-e0f8a3489629 // indirect
github.com/hashicorp/go-secure-stdlib/strutil v0.1.1 // indirect
github.com/hashicorp/go-sockaddr v1.0.2 // indirect
github.com/kr/pretty v0.3.0 // indirect
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5Kwzbycv
github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg=
github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk=
github.com/hashicorp/go-secure-stdlib v0.1.1-0.20250113211030-e0f8a3489629 h1:heq4Ew9a9UIHWwznzI5N4bG5Jb1WhuKaoHhRTOnLwQY=
github.com/hashicorp/go-secure-stdlib v0.1.1-0.20250113211030-e0f8a3489629/go.mod h1:FWbaGK8VHvb9GD7G/FwTwfFoKsLv2cf5wsBmbZUcKUQ=
github.com/hashicorp/go-secure-stdlib/parseutil v0.1.7 h1:UpiO20jno/eV1eVZcxqWnUohyKRe1g8FPV/xH1s/2qs=
github.com/hashicorp/go-secure-stdlib/parseutil v0.1.7/go.mod h1:QmrqtbKuxxSWTN3ETMPuB+VtEiBJ/A9XhoYGv8E1uD8=
github.com/hashicorp/go-secure-stdlib/strutil v0.1.1 h1:nd0HIW15E6FG1MsnArYaHfuw9C2zgzM8LxkG5Ty/788=
Expand Down
2 changes: 1 addition & 1 deletion options.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ func WithoutHMAC() Option {

func ParsePaths(fields ...*string) error {
for i := 0; i < len(fields); i++ {
if newVal, err := parseutil.ParsePath(*fields[i]); err != nil {
if newVal, err := parseutil.ParsePath(*fields[i], parseutil.WithNoTrimSpaces(true), parseutil.WithErrorOnMissingEnv(true)); err != nil {

Check failure on line 161 in options.go

View workflow job for this annotation

GitHub Actions / build (1.21, ubuntu-latest)

too many arguments in call to parseutil.ParsePath

Check failure on line 161 in options.go

View workflow job for this annotation

GitHub Actions / build (1.21, ubuntu-latest)

undefined: parseutil.WithNoTrimSpaces

Check failure on line 161 in options.go

View workflow job for this annotation

GitHub Actions / build (1.21, ubuntu-latest)

undefined: parseutil.WithErrorOnMissingEnv
return err
} else {
*fields[i] = newVal
Expand Down

0 comments on commit bf9e3b0

Please sign in to comment.