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

extension: prevent name collisions with resources #5746

Merged
merged 1 commit into from
May 3, 2022

Conversation

milas
Copy link
Contributor

@milas milas commented Apr 28, 2022

This is a bit of a hacky fix to prevent bizarre behavior if you
end up with an extension that has the same name as another resource.

Fixes #4883.

This is a bit of a hacky fix to prevent bizarre behavior if you
end up with an extension that has the same name as another resource.

Fixes #4883.
@milas milas added the bug Something isn't working label Apr 28, 2022
@milas milas requested a review from nicks April 28, 2022 17:53
@milas milas self-assigned this Apr 28, 2022
Copy link
Member

@nicks nicks left a comment

Choose a reason for hiding this comment

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

i feel like it'd be better to fix this upstream (before this even gets to the engine), but seems fine for now.

@milas
Copy link
Contributor Author

milas commented May 3, 2022

i feel like it'd be better to fix this upstream (before this even gets to the engine), but seems fine for now.

Yeah, I tried a few different things in the Tiltfile reconciler, but I don't think it's feasible to prevent there currently. I think we probably need a coordinating object(s) for the DAG of Tiltfile execution, so that there's a shared source of truth, i.e. TiltfileState but distributed 🤪

@milas milas merged commit c1e3046 into master May 3, 2022
@milas milas deleted the milas/fix-ext-dupe-name branch May 3, 2022 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

extension and local_resource with the same name lead to weird loops
2 participants