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(client.go): fixes premature index file download #177

Merged
merged 1 commit into from
Jul 26, 2023
Merged

fix(client.go): fixes premature index file download #177

merged 1 commit into from
Jul 26, 2023

Conversation

nxtcoder17
Copy link
Contributor

@nxtcoder17 nxtcoder17 commented Jul 26, 2023

fixes #176
now when calling AddOrUpdateChartRepo the index file is downloaded only when the repo is not already cached in storage.

now when calling `AddOrUpdateChartRepo` the index file is downloaded
only when the repo is not already cached in storage.
Copy link
Collaborator

@elenz97 elenz97 left a comment

Choose a reason for hiding this comment

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

Thanks @nxtcoder17 and good catch 😄 lgtm!

@elenz97 elenz97 merged commit 15ee7e0 into mittwald:master Jul 26, 2023
2 checks passed
@nxtcoder17
Copy link
Contributor Author

thanks @elenz97

@nxtcoder17 nxtcoder17 deleted the fix/premature-index-file-download branch July 26, 2023 18:28
@fischerman
Copy link

For future readers: This is a breaking change. AddOrUpdateChartRepo no longer updates the index if it exists(despite the "update" in the name). To update the index call UpdateChartRepos. It is counterintuitive that "AddOrUpdate" doesn't do the same thing as "Update" in case of an update.

@elenz97 Should this be marked in the change log as a breaking change?

@enrichman
Copy link

@fischerman Thanks for this confirmation. We had a couple of issues related to this (see epinio/epinio#2690), and checking the code I was not really sure why the Update was not really updating. I would have considered this in a different method, or changing the signature.

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.

bug: AddOrChartRepo, downloads index file, everytime it is being called
4 participants