Skip to content

Conversation

nicksieger
Copy link
Member

@nicksieger nicksieger commented Nov 16, 2021

When only using docker compose as in #4882, looking up the registry is unnecessary and appears to block the UI until after the tiltfile is fully executed.

  • tiltfile: defer finding registry until needed
  • vendor: make vendor updates

@nicksieger nicksieger requested review from nicks and milas November 16, 2021 23:35
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.

LGTM!

}

// Defer lookup of registry until now
if s.localRegistry == nil {
Copy link
Member

Choose a reason for hiding this comment

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

for what it's worth - i'm pretty sure LocalRegistry() is already memoized in the k8sClient itself, so no need to store it as a field on tiltfileState

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I wasn't sure whether it made sense to keep that struct field. I'm going to remove and clean up.

Copy link
Contributor

@milas milas left a comment

Choose a reason for hiding this comment

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

🎉 🎉 🎉 🎉

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.

3 participants