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

Fix for issue with single ignored dependency #187

Merged
merged 1 commit into from
Jan 24, 2024

Conversation

andybee
Copy link
Contributor

@andybee andybee commented Jan 20, 2024

Current logic for ignored dependencies only worked if two or more dependencies are marked as ignored, as it assumes the ignored property is an array.

This PR adds an additional check that the value is an array, and only then runs it via .includes(), else performs a direct comparison which works with both a single ignored dependency string as well as undefined.

@ryanblock ryanblock merged commit 1d7843f into architect:main Jan 24, 2024
14 checks passed
@ryanblock
Copy link
Member

Looks great, thank you! I hate to hold this one up, but I'm in the process of shipping Arc 11, so this will have to show up there.

@andybee
Copy link
Contributor Author

andybee commented Jan 24, 2024

No worries, I've patched it locally for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants