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

fix: Use client name specific for build tools #73

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

zsolt-marta-bitrise
Copy link
Collaborator

No description provided.

@@ -80,7 +80,7 @@ func (c *Client) Get(ctx context.Context, name string) (io.ReadCloser, error) {
}

func (c *Client) Delete(ctx context.Context, name string) error {
resourceName := fmt.Sprintf("%s/%s", c.clientName, name)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Changing these would invalidate caches

@@ -36,7 +42,7 @@ func createKVClient(ctx context.Context,
UseInsecure: insecureGRPC,
Host: buildCacheHost,
DialTimeout: 5 * time.Second,
ClientName: "kv",
ClientName: clientName,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Reused the existing field that wasn't doing much

@zsolt-marta-bitrise zsolt-marta-bitrise merged commit c259b77 into main Dec 11, 2024
1 check passed
@zsolt-marta-bitrise zsolt-marta-bitrise deleted the fix-metadata branch December 11, 2024 16:15
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