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

Build inline components #2393

Closed
wants to merge 1 commit into from

Conversation

itowlson
Copy link
Contributor

I am not sure what to do about the duplication of manifest deserialisation stuff. It's intentional that build shouldn't break over a bad kebab etc., but I'm not loving how much this increases build's need to make "forgiving" copies of manifest code. I'm open to ideas on a way forward!

Signed-off-by: itowlson <ivan.towlson@fermyon.com>
@lann
Copy link
Collaborator

lann commented Mar 28, 2024

It's intentional that build shouldn't break over a bad kebab etc

To clarify: you're saying that you want build to work when the manifest is otherwise invalid? Is that scenario worth accommodating?

@itowlson
Copy link
Contributor Author

itowlson commented Apr 1, 2024

There is invalid and there is invalid. It does break flow when you can't build your code because you forgot whether variables are snake or kebab case or you messed up an allowed_outbound_host. "Yes but I can fix that later, I just want to get this lifetime error sorted and then I'll come back to it." Admittedly, it breaks flow once and then it's done... We can certainly reassess this, and I guess should: I have a feeling that we adopted the "forgiving subset" approach at a time when the loader crate did a lot of validation: I think we now expose something closer to a 'raw schema' stage, so maybe that's an acceptable compromise.

@lann
Copy link
Collaborator

lann commented Apr 2, 2024

I think we now expose something closer to a 'raw schema' stage, so maybe that's an acceptable compromise.

Yeah that was part of my intention with the Great spin-manifest Refactor of '23. If we feel like ID casing is something we need to be flexible with here I hope we could add that flexibility to spin-manifest by - say - making that validation optional somehow.

@itowlson itowlson closed this May 29, 2024
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.

2 participants