mirror of
https://github.com/nspcc-dev/neofs-node.git
synced 2026-03-01 04:29:10 +00:00
Use viper to handle ENV variables in config #1398
Labels
No labels
I1
I2
I3
I4
S0
S1
S2
S3
S4
U0
U1
U2
U3
U4
blocked
bug
config
dependencies
discussion
documentation
enhancement
enhancement
epic
feature
go
good first issue
help wanted
neofs-adm
neofs-cli
neofs-cli
neofs-cli
neofs-ir
neofs-lens
neofs-storage
neofs-storage
performance
question
security
task
test
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nspcc-dev/neofs-node#1398
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @End-rey on GitHub (Apr 11, 2025).
Is your feature request related to a problem? Please describe.
I'm always frustrated when we write our own ENV variable handler when it can be solved using the library
viper.Describe the solution you'd like
Update the
viperlibrary to the version when there is a built-in handler for ENV variables in the functionUnmarshalExactand do not use your own handler.Describe alternatives you've considered
Keep it as is, it works.
Additional context
The main feature has already been implemented https://github.com/spf13/viper/pull/1429, but now it is experimental and has some problems, for example https://github.com/spf13/viper/issues/1732.
Own handler has appeared in #3247 and #3288.