-
Notifications
You must be signed in to change notification settings - Fork 998
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
Fix bug in allowing empty repositories to be applied to a GCS registry #1488
Fix bug in allowing empty repositories to be applied to a GCS registry #1488
Conversation
Signed-off-by: Willem Pienaar <[email protected]>
Signed-off-by: Willem Pienaar <[email protected]>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jklegar, woop The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
@@ -71,7 +69,7 @@ def __init__(self, registry_path: str, repo_path: Path, cache_ttl: timedelta): | |||
|
|||
def _initialize_registry(self): | |||
"""Explicitly forces the initialization of a registry""" | |||
self._registry_store.update_registry_proto() | |||
self._registry_store.update_registry_proto(updater=None) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: you don't need updater=None
since you added the default
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea, this was a relic from my debugging. Good catch.
#1488) * Fix no-op for GCS registry Signed-off-by: Willem Pienaar <[email protected]> * Unify signature Signed-off-by: Willem Pienaar <[email protected]>
Signed-off-by: Willem Pienaar [email protected]
What this PR does / why we need it:
We introduced a bug with #1477. We allow initialization of the registry during
apply
, even with empty repositories. However, support was only added for the local registry, not the GCS registry.Does this PR introduce a user-facing change?: