chore: separate deploy from polywrap project#1482
Conversation
76c080e to
4600b86
Compare
af4806c to
fcfaeb3
Compare
fcfaeb3 to
4f2a3aa
Compare
4f2a3aa to
e5be4d0
Compare
|
one open question: now that this pr removes the dependency of having a |
310b77f to
1235221
Compare
1bcfca7 to
02e7273
Compare
I think there's precedent for this ( |
@pileks perfect, working on this now |
pileks
left a comment
There was a problem hiding this comment.
Overall this is a great change and a step forward in a direction we've already taken with build and codegen!
One thing I'd note - When migrating the templates, it would be a good excercise to migrate them using polywrap manifest migrate, so that you make sure that you are creating a migration that can truly migrate our manifests (of course, there can always be breaking changes which prevent you from this).
Apart from some nitpicks, I'd say that I'd personally go with the delete approach in the migration.
|
Hey @cbrzn @pileks, some thoughts on how I think we should treat the project manifest ( First thought is, I think we should remove the concept of a project "extension" and create a much simpler & uniform experience for the CLI. Instead I think we should call them command manifests, which can be defined for the various CLI commands: Second, we should have the command manifests back-link to the project they are referencing (if needed). Currently only the Lastly, commands will have default naming conventions for their manifests (i.e. The result of doing these things is that we:
Thoughts? |
|
Okay, spent some time digging into this #1482 (comment) and have a bit more of an appreciation for the concept of a "project exetension". I think project extensions make sense for things like the build & codegen command, since they both require a project manifest ( So, this means that the following will be true:
I know this is right back where we started, but just wanted to fully explore the options here and explain the rationale. |
@dOrgJelli what you said makes sense, and I also thought that we should only have I will merge and fix the tests |
chore: remove unnecessary project manifest extensions
Creates a new
PolywrapDeployclass which takes care of the deploy logic. Now user does not need to havepolywrap.yamlto deploy a wrapper.TODO:
deployattribute fromextensionsinpolywrap.yamlblock: #1476
closes #1426