Skip to content

clio should have a config field type that has to be a path, and it should expand homedir etc. #77

Description

@willmurphyscode

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 be LocalPath instead of string in order to get the expansion behavior.

Why is this needed:

anchore/grype#2024
anchore/grype#2599

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions