Skip to content

feat(__load_completion): load in-tree before system data dirs #823

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

Closed
wants to merge 1 commit into from

Conversation

scop
Copy link
Owner

@scop scop commented Sep 18, 2022

This swaps the lookup order of in-tree (relative to the main script) and system data dirs. By checking in-tree completions first, before system data dirs, we support setups running directly from a git clone better, and have a more robust setup in any case.

The main script and in-tree completions should stay in sync. There might for example be internal API changes between releases which wouldn't work if the main bash_completion and the set of completions we ship were from different versions, e.g. from git and a release.

Refs #537 (reply in thread)

This swaps the lookup order of in-tree (relative to the main script) and
system data dirs. By checking in-tree completions first, before system
data dirs, we support setups running directly from a git clone better,
and have a more robust setup in any case.

The main script and in-tree completions should stay in sync. There might
for example be internal API changes between releases which wouldn't work
if the main `bash_completion` and the set of completions we ship were
from different versions, e.g. from git and a release.

Refs #537 (reply in thread)
@akinomyoga
Copy link
Collaborator

I think a part of this change overlaps with #696.

@scop
Copy link
Owner Author

scop commented Sep 20, 2022

Oh, indeed, I had forgotten about that one. Sorry, and thanks for picking up these changes there!

@scop scop closed this Sep 20, 2022
@scop scop deleted the feat/load-order branch September 20, 2022 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants