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

Move ~/.bpkg to ~/.cache/bpkg? #52

Open
nfarrar opened this issue Aug 20, 2015 · 4 comments
Open

Move ~/.bpkg to ~/.cache/bpkg? #52

nfarrar opened this issue Aug 20, 2015 · 4 comments

Comments

@nfarrar
Copy link

nfarrar commented Aug 20, 2015

Would it be possible to make dpkg compatible with the XDG standard and move the ~/.bpkg cache to ${XDG_CACHE_HOME:-/.cache}/bpkg? It's really nice when applications conform with the standard, as it helps keep $HOME uncluttered.

@ccarpita
Copy link
Member

[redacted -1, misunderstood] Don't really agree that ~/.cache is appropriate, as the binary file is necessary for the operation of the script and not really "cache". Note that you can override the the bpkg install path (I assume .dpkg is a typo) using the PREFIX env variable on install.

@nfarrar
Copy link
Author

nfarrar commented Aug 20, 2015

Sorry, just getting started with bpkg - working on migrating some of my scripts over. To install bpkg, I used the command:

PREFIX=$HOME/.local ./setup.sh

Which installed the bins to ~/.local/bin/<bins>. I noticed at the same time that ~/.bpkg was also created, and when I look in the contents of this directory, I see:

$ tree ~/.bpkg
/home/nfarrar/.bpkg
└── index
    └── github.com
        └── index.txt

2 directories, 1 file

So I assumed this directory was only used for caching the git index data - which seemed like it would be a good candidate for (in compliance with XDG) moving that data into $XDG_CACHE_HOME.

That directory is used for storing other types of data as well?

@ccarpita
Copy link
Member

Makes more sense now, sorry about the confusion.

I agree with the sentiment to use XDG_CACHE_HOME to set the cache path for the package index, and would +1 such a PR.

For now, you can work around this by setting BPKG_INDEX to something like $HOME/.cache/.bpkg-index in your call to setup.sh

@nfarrar
Copy link
Author

nfarrar commented Aug 20, 2015

Awesome, thanks!

@Potherca Potherca added this to the Next major release (v0.4.0) milestone Nov 16, 2019
@jwerle jwerle changed the title Move ~/.dpkg to ~/.cache/dpkg? Move ~/.bpkg to ~/.cache/bpkg? Apr 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants