Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support XDG directories #2534

Open
gibfahn opened this issue Mar 7, 2019 · 3 comments
Open

Support XDG directories #2534

gibfahn opened this issue Mar 7, 2019 · 3 comments
Labels
area/cli UX of using the CLI (args, output, logs) good-first-issue Start here if you'd like to start contributing to Pulumi kind/enhancement Improvements or new features

Comments

@gibfahn
Copy link

gibfahn commented Mar 7, 2019

Simplest version would just be to read an env var like $PULUMI_HOME and use that instead of $HOME/.pulumi if defined. That way those that care can set the variable.

Something like what git does (see the docs, it supports all the defaults, and env vars, and command line flags) would be the fancy version.

Sorry if this is the wrong place to raise this!

@ellismg ellismg added good-first-issue Start here if you'd like to start contributing to Pulumi area/cli UX of using the CLI (args, output, logs) kind/enhancement Improvements or new features labels Mar 7, 2019
@ellismg
Copy link
Contributor

ellismg commented Mar 7, 2019

Sorry if this is the wrong place to raise this!

No, this is the correct place. This is a change we'd be willing to accept, but would love help on, if you're interested. Would be interesting to look at the XDG spec and see what parts of ~/.pulumi would be mapped where (I could imagine that our plugin cache ends up under $XDG_CACHE_HOME or something).

@Volatus
Copy link
Contributor

Volatus commented Apr 9, 2021

I'd like to take this one up.

@Volatus
Copy link
Contributor

Volatus commented Apr 20, 2021

This is actually a bigger change than I previously thought, there are a number of instances where the paths are hardcoded throughout the codebase. The easiest "fix" is to set the $PULUMI_HOME variable to the $XDG_DATA_HOME/pulumi. Yes, it doesn't put all files strictly where they belong but it's better than $HOME/.pulumi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli UX of using the CLI (args, output, logs) good-first-issue Start here if you'd like to start contributing to Pulumi kind/enhancement Improvements or new features
Projects
None yet
Development

No branches or pull requests

3 participants