Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(plugin): merge cond property of import specs#1963

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
overhacked wants to merge1 commit intofolke:main
base:main
Choose a base branch
Loading
fromoverhacked:import-cond

Conversation

@overhacked
Copy link

Description

When a spec had animport property, thecond property was treated the same asenabled; any specs to be imported were ignored and treated as uninstalled ifcond evaluated to false. This is inconsistent with howcond behaves in a plugin spec without animport property.

To make the behavior consistent when usingimport to manage submodules of plugin specs, merge thecond property of the "parent" spec(s) containing animport property with anycond property found on the imported "child" spec(s), including nestedimport specs. The parent and childcond properties are evaluated and combined with booleanand.

Related Issue(s)

None

Screenshots

N/A

When a spec had an `import` property, the `cond` property was treatedthe same as `enabled`; any specs to be imported were ignored and treatedas uninstalled if `cond` evaluated to false. This is inconsistent withhow `cond` behaves in a plugin spec without an `import` property.To make the behavior consistent when using `import` to manage submodulesof plugin specs, merge the `cond` property of the "parent" spec(s)containing an `import` property with any `cond` property found on theimported "child" spec(s), including nested `import` specs. The parentand child `cond` properties are evaluated and combined with boolean`and`.Signed-off-by: Ross Williams <ross@ross-williams.net>
@github-actions
Copy link
Contributor

This PR is stale because it has been open 30 days with no activity.

@github-actionsgithub-actionsbot added the staleThis issue or PR has been inactive for a while labelApr 30, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

staleThis issue or PR has been inactive for a while

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@overhacked

[8]ページ先頭

©2009-2025 Movatter.jp