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
The configuration package looks up keys from env vars in addition to what is loaded from the JSON config. This is convenient for overriding values with the environment. However, these names can conflict with existing system environment variables if they happen to have the same name. E.g.: A restlib config key named PATH would end up with the system path ($PATH), which is very unlikely what a user would want.
The solution is to automatically prefix the env vars which should be used with restlib. Something like: RESTLIB_PATH. This will greatly reduce the risk of a conflict and a hard to debug problem. Config keys would continue to have no prefix.
The text was updated successfully, but these errors were encountered:
The
configuration
package looks up keys from env vars in addition to what is loaded from the JSON config. This is convenient for overriding values with the environment. However, these names can conflict with existing system environment variables if they happen to have the same name. E.g.: A restlib config key namedPATH
would end up with the system path ($PATH
), which is very unlikely what a user would want.The solution is to automatically prefix the env vars which should be used with restlib. Something like:
RESTLIB_PATH
. This will greatly reduce the risk of a conflict and a hard to debug problem. Config keys would continue to have no prefix.The text was updated successfully, but these errors were encountered: