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

Revert "Move from local icons to polaris-icons (#686)" #775

Closed
wants to merge 1 commit into from

Conversation

AndrewMusgrave
Copy link
Member

This reverts commit d847fc6.

WHY are these changes introduced?

Polaris icon's cannot be resolved

screen shot 2018-12-17 at 4 57 31 pm

WHAT is this pull request doing?

Reverting #686

How to 🎩

Build consumer to web or polaris styleguide

@AndrewMusgrave
Copy link
Member Author

cc/ @amrocha @kaelig

Copy link
Contributor

@kaelig kaelig left a comment

Choose a reason for hiding this comment

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

Please don't revert. The error is due to a limitation in build-consumer, which doesn't install transitive dependencies.

@AndrewMusgrave
Copy link
Member Author

Please don't revert. The error is due to a limitation in build-consumer, which doesn't install transitive dependencies.

I'm not familiar with the term transitive dependencies, what are they?

Is this something that can easily be fixed forward? @kaelig

@BPScott
Copy link
Member

BPScott commented Dec 17, 2018

Transitive dependencies are dependencies of dependencies. In this case polaris-styleguide does not directly depend upon polaris-icons, but on polaris-react, which in turn depends upon polaris-icons.

polaris-icons is a new dependency of polaris-react that only exists on master.

Running yarn build consumer polaris-styleguide does not install any of polaris-react's dependencies into polaris-styleguide. Most of the time this works by fluke as we don't change dependencies that often (and styleguide will use dependencies of what it has in its package.json). However in this case polaris-styleguide can't find the polaris-icons package because it has not been installed - it isn't there in polaris 3.3.0.

This will fix itself once we release a new version of polaris-react and update polaris-styleguide to use that version.

@AndrewMusgrave
Copy link
Member Author

Running yarn build consumer polaris-styleguide does not install any of polaris-react's dependencies into polaris-styleguide. Most of the time this works by fluke as we don't change dependencies that often (and styleguide will use dependencies of what it has in its package.json). However in this case polaris-styleguide can't find the polaris-icons package because it has not been installed - it isn't there in polaris 3.3.0. This will fix itself once we release a new version of polaris-react and update polaris-styleguide to use that version.

Thanks, TIL. That's unfortunate, build-consumer may need to be improved since it's heavily used for testing on web, where we should be checking our changes and builds before release. If this is fixed with a release, is there a reason why we haven't done one already?

@dleroux
Copy link
Contributor

dleroux commented Dec 19, 2018

But technically we should't release a new version of Polaris unless we are able to build-consumer and properly tophat our release?

@kaelig kaelig deleted the revert-polaris-icons branch April 26, 2019 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants