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 bower dependency path when in child directory #14

Merged
merged 1 commit into from
Jan 21, 2016

Conversation

HeroicEric
Copy link
Contributor

I found this bug while investigating emberjs/data#4096

Basically, when you're in a child directory of your app, such as your-app/app/, the dependency checks for bower components fail because they cannot find the version.

This is because the version checker is using project.bowerDirectory to build the path to the dependency. Since project.bowerDirectory defaults to the name "bower_components" and not the actual path, this doesn't work unless you're inside your app's root directory when the dependency check is run.

I'm not sure how to write a test that covers this but I promise it works 😈

@HeroicEric HeroicEric changed the title Fix bower dependency path when in child directory WIP Fix bower dependency path when in child directory Jan 21, 2016
I found this bug while investigating
emberjs/data#4096

Basically, when you're in a child directory of your app, such as
`your-app/app/`, the dependency checks for bower components fail because
they cannot find the version.

This is because the version checker is using `project.bowerDirectory` to
build the path to the dependency. Since `project.bowerDirectory`
defaults to the name "bower_components" and not the actual path, this
doesn't work unless you're inside your app's root directory when the
dependency check is run.
@HeroicEric HeroicEric changed the title WIP Fix bower dependency path when in child directory Fix bower dependency path when in child directory Jan 21, 2016
rwjblue added a commit that referenced this pull request Jan 21, 2016
Fix bower dependency path when in child directory
@rwjblue rwjblue merged commit bf010c7 into ember-cli:master Jan 21, 2016
@rwjblue
Copy link
Member

rwjblue commented Jan 21, 2016

Thank you!

@rwjblue
Copy link
Member

rwjblue commented Jan 21, 2016

Published as v1.1.6.

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