-
Notifications
You must be signed in to change notification settings - Fork 73
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
smithy4s-protocol not being written to smithy4sUpdateLSPConfig #1517
Comments
@daddykotex off the top of your head, do you have any hunch on why alloy is being written but smithy4s-protocol isn't? |
looks like smithy4s-protocol is a dependency of the codegen / build plugin itself, being added to the model in smithy4s/modules/codegen/src/smithy4s/codegen/internals/ModelLoader.scala Lines 181 to 187 in 7cc1aa9
unless we want to change how all that works, it'd probably be the easiest if we hardcode the protocol dependency in the smithy-build writing code |
yes, I'm guessing it happens like that because the dependency comes in via really not sure about that, and I can't remember more |
I think we're gonna just want to hardcode the addition of this module ( for starters, we could go with smithy4s/modules/codegen/src/smithy4s/codegen/SmithyBuildJson.scala Lines 34 to 41 in 89e88c9
|
Tests for this can be added in: https://github.com/disneystreaming/smithy4s/blob/89e88c972174fa0a3b2853901a52a5a6a4662c6d/modules/codegen/test/src/smithy4s/codegen/internals/SmithyBuildSpec.scala The expectation is that you'll always have a Maven dependency written for As for manual testing, I suggest:
|
With a standard smithy4s setup, the
smithy-build.json
file looks like this:There's #1459, of course, but another problem is that
maven.dependencies
doesn't contain the artifact with traits formsmithy4s.meta
- namelycom.disneystreaming.smithy4s:smithy4s-protocol
.I'm not sure if Alloy is special-cased in any way here, but if so, we should also special-case smithy4s-protocol. If it's not special-cased, something may be wrong in how we collect dependencies.
The text was updated successfully, but these errors were encountered: