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

Handle case where there's a cached dependencies object, but no dependencies. #205

Merged
merged 2 commits into from
Aug 28, 2020

Conversation

chriseppstein
Copy link
Contributor

This is a subtle bug that has a work-around (add a file that's a dependency, clear the cache) but it really messes up the "Getting Started" experience when working with a new addon that uses dependencies.

@rwjblue
Copy link
Member

rwjblue commented Aug 6, 2020

Is it possible to add a test for the bug you ran into? Would make the failure case easier to understand and help ensure we don't regress...

@chriseppstein chriseppstein force-pushed the degenerate-dependencies branch from 439a28e to e2f679d Compare August 8, 2020 21:07
@chriseppstein
Copy link
Contributor Author

@rwjblue I've added a test case.

@chriseppstein chriseppstein force-pushed the degenerate-dependencies branch from e2f679d to 9fb0865 Compare August 8, 2020 21:24
Comment on lines +1447 to +1448
rimraf(subject.processor.processor._cache.root);
rimraf(subject.processor.processor._syncCache.root);
Copy link
Member

Choose a reason for hiding this comment

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

This is just ensuring that we aren't accidentally using a prior cache right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Correct.

@rwjblue rwjblue added the bug label Aug 28, 2020
@rwjblue rwjblue merged commit 7ae4004 into broccolijs:master Aug 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants