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

write a checksum file after downloading and use that when the file exists #109

Merged
merged 3 commits into from
Nov 19, 2013

Conversation

KAllan357
Copy link
Contributor

When we download an artifact_file, we should write a checksum for that file to the file_cache_path. That way, once a file has been downloaded, we only need to check the written file to ensure the local file hasn't changed - Nexus downloads in particular are affected because we'll no longer need to keep asking the Nexus server for a SHA1.

Kyle Allan added 3 commits November 13, 2013 12:06
Only write the checksum when we are Nexus or S3 - remote_file will do the rest.
Fast return a value when the cached checksum exists.
  otherwise check the Nexus server (for Nexus) or check the resource's checksum (S3 or remote_file)
@ivey
Copy link
Contributor

ivey commented Nov 15, 2013

🐩

@jianfeiliao
Copy link

+1 as far as my limited knowledge on this cookbook goes.

KAllan357 added a commit that referenced this pull request Nov 19, 2013
write a checksum file after downloading and use that when the file exists
@KAllan357 KAllan357 merged commit b1995a3 into master Nov 19, 2013
@KAllan357 KAllan357 deleted the cache_checksum branch November 19, 2013 18:48
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