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

require: fix conf.d support #927

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

require: fix conf.d support #927

wants to merge 1 commit into from

Conversation

derekstavis
Copy link
Member

@derekstavis derekstavis commented Feb 13, 2023

Description

Some time ago support for conf.d was added but it is currently broken if the package does not have an init.fish file, given that require enumerates packages through a glob on the existence of init.fish.

This fixes this requirement by globbing both init.fish and conf.d entries in the OMF_PATH. This does generate duplicated entries, but given that require already protects against double requires, this should be safe.

Some time ago support for conf.d was added but it is currently broken if
the package does not have an `init.fish` file, given that `require`
enumerates packages through a glob on the existence of `init.fish`.

This fixes this requirement by globbing both `init.fish` and `conf.d`
entries in the `OMF_PATH`. This does generate duplicated entries, but
given that `require` already protects against double requires, this
should be safe.
@derekstavis derekstavis requested a review from a team as a code owner February 13, 2023 03:38
Copy link

@A1exKH A1exKH left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

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.

None yet

2 participants