Skip to content

XDG Base Directory-compliant path for ~/.devspace/ui #3106

@dmytro-GL

Description

@dmytro-GL

Is your feature request related to a problem?

Running devspace deploy downloads the UI and unpacks it to ~/.devspace/ui. This location appears to be hard-coded:

https://github.com/devspace-sh/devspace/blob/v6.3.18/pkg/devspace/server/download.go#L44

Which solution do you suggest?

I see two issues here:

  1. The UI is downloaded automatically even though the command I am running has nothing to do with it. I don't really need it, I only use CLI. I'd prefer devspace to download the UI only when the user runs devspace ui.
  2. The UI is downloaded to a hard-coded location in $HOME. I like to keep my $HOME clean. There are at least two possible solutions:
    a) store the UI in an XDG Base Directory-compliant location, e.g. $XDG_DATA_HOME/devspace/ui
    b) support an environment variable like DEVSPACE_HOME (similar to MINIKUBE_HOME, HELM_DATA_HOME, etc) to override the default location

Which alternative solutions exist?

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureNew feature or feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions