-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
Update package to remove CLI as dep for client #165
Comments
Yep agreed! I raised this the other day with maticzav as well and we agree. |
@shaps80 do you know of any Swift project that has two packages in the same repository and we could use as reference to do this? |
Yeah I think I might have one myself. I've looked into this separately and I think I worked out the issue and maybe even resolved it. I'll look into this again later as I'm not working today. My son is home so I won't be able to get much done till tomorrow. |
Before my attempt in this PR (which moves CLI to a separate package) I played around with a sub-package for the CLI as well. I had some success but the tricky part I ran into was exposing the CLI to the importer of swift-graphql via a plugin. Anyway, just food for thought. Perhaps there's another way to sub-package that doesn't suffer from the same problem. I suppose that in the current workflow the CLI leans towards beig built and installed on the dev machine rather than run as a package plugin/executable. I definitely prefer the package plugin/executable structure since it's one step simpler but that's just an opinion. |
Happy to take this on if I can get some direction on:
|
@CrownedPhoenix this is ultimately the goal however considering the large scale changes that are in progress right now for v6, it's premature to attempt this just yet. However once we get more of the core library in a branch where others can test, this is likely a step we'd be keen on. Again, we're not there yet and we do not want to introduce large scale effort into v5 right now. |
SwiftGraphQLCLI
is not needed for applications usingSwiftGraphQLClient
and it brings along many dependencies like Spinner, Files, Yams as well as swift-format and, indirectly,SwiftSyntax
which does not follow SemVer and easily causes conflicts (see discussion here).Please consider moving SwiftGraphQLCLI to its own package.
The text was updated successfully, but these errors were encountered: