-
Notifications
You must be signed in to change notification settings - Fork 42
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
Icon pack resolution breaks when dependencies not aligned #578
Comments
This is not an issue that needs to be addressed via changes to this codebase. What needs to happen is for packages depending on older versions of this addon, which might be used alongside newer versions of the same, to be updated so that all code and dependencies are in sync. |
While @notmessenger has a point in that the root of the problem is not being fixed, I still think this issue being address in this code base is still valid. It ensures that the icons are being fetched from the right repo vs whatever winner comes out of the npm alignment issue. At least with this work, we can limp along until we can address the huge fallout of of multiple versions in our repo. |
This change requires the following scenarios to be tested:
This code is very intertwined with how Ember CLI works and the complicated relationship we have between all of our addons and these are all of the testing steps/scenarios we had to employ when making the last round of refactors. Without this testing there is no guarantee that something does not become broken. When we mentioned this to @EWhite613 he said that he did not have the time to do all of this testing. This comment (thread) serves as my due diligence in laying out the concerns with this approach so if @cstolli says to merge #579 then we should proceed. |
I know that the level of testing that @notmessenger outlined was conducted and verified that functionality was working correctly prior to this change: https://github.com/ciena-frost/ember-frost-core/pull/577/files |
Great points guys. I think it's fair that we do at least that much testing to ensure this doesn't break anything else. I would prefer that @cstolli not merge this without that testing because I'm not familiar with the code to be confident enough to give my approval. We're not dead in the water because there is a work around. |
Summary
Icon pack resolving svg path doesn't work well with
basedir: this.project.root
when dependecies aren't alignedExpected Behavior
Actual Behavior
Possible Solution
Steps to Reproduce
[email protected]
[email protected]
ENOENT: no such file or directory, lstat '/workspace/mcp-ui/node_modules/ember-frost-core/frost-icon-svgs'
7.0.0
stores svgs insvg
folder, and8.2.5
stores infrost-icon-svgs
The text was updated successfully, but these errors were encountered: