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
Clio should know that certain config fields represent paths on the local filesystem, and should do some common expansions, for example ~, $HOME, and $TMPDIR, so that these can be expanded.
Probably we want something like type LocalPath = string in the config, and then config structs in clio applications can declare fields to be LocalPath instead of string in order to get the expansion behavior.
This would need to be a new type, which ends up being a bit annoying at times:type LocalPath string (no =; it can't use aliasing, because we need a new type to implement the PostLoad interface). It would basically work like secrets do, just to update the value using homedir or whatnot.
What would you like to be added:
Clio should know that certain config fields represent paths on the local filesystem, and should do some common expansions, for example
~
,$HOME
, and$TMPDIR
, so that these can be expanded.Probably we want something like
type LocalPath = string
in the config, and then config structs in clio applications can declare fields to beLocalPath
instead ofstring
in order to get the expansion behavior.Why is this needed:
anchore/grype#2024
The text was updated successfully, but these errors were encountered: