Skip to content
This repository was archived by the owner on Nov 8, 2018. It is now read-only.

Don't re-fetch rust.tar.gz every single time #1

Closed
farcaller opened this issue Jun 4, 2015 · 3 comments
Closed

Don't re-fetch rust.tar.gz every single time #1

farcaller opened this issue Jun 4, 2015 · 3 comments

Comments

@farcaller
Copy link
Member

No description provided.

@mcoffin
Copy link

mcoffin commented Jun 11, 2015

To do this, we'd have to implement some way to tag the rust directory with the commit hash. Maybe just touch an empty file with the name of the commit hash, then check to see if the file exists. If it doesn't, delete the directory and re-download. If it exists then we already have the right version and don't need to re-download the tarball.

@bharrisau
Copy link

Or save the download with the commit version in the file name?
On 11 Jun 2015 8:43 am, "Matt Coffin" notifications@github.com wrote:

To do this, we'd have to implement some way to tag the rust directory with
the commit hash. Maybe just touch an empty file with the name of the
commit hash, then check to see if the file exists. If it doesn't, delete
the directory and re-download. If it exists then we already have the right
version and don't need to re-download the tarball.


Reply to this email directly or view it on GitHub
#1 (comment)
.

@mcoffin
Copy link

mcoffin commented Dec 15, 2015

Or save the download with the commit version in the file name?

It's probably a little more error prone to tag the tarball with the version than to tag the actual working directory with the version.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants