kr / hk

Fast Heroku client
https://hk.heroku.com/
77 stars 6 forks source link

Better organization for S3 buckets #65

Closed bgentry closed 10 years ago

bgentry commented 10 years ago

I'm thinking we could use a cleaner hierarchy for builds and diffs in the S3 buckets. Currently, everything gets thrown directly into the top level of the bucket. Instead, I'd like to prefix to get some better organization. Examples:

# dist bucket: (/version/platform.gz)
/v20130919/darwin-amd64.gz
/v20130919/linux-arm.gz
/v20130919/windows-amd64.gz

# patch bucket: ( /from/to/platform.gz )
/v20130917/v20130918/darwin-amd64.gz
/v20130917/v20130918/linux-arm.gz
/v20130917/v20130919/darwin-amd64.gz
/v20130917/v20130919/linux-arm.gz

I think this will make it easier to clean out old bins and patches, and also makes it easier to see which patches have been generated.

kr commented 10 years ago

Do you suggest leaving out the name field? (Currently always hk.) It's there in case we also want to distribute plugins.

bgentry commented 10 years ago

No, sorry, the highest level prefix should be the name. So /hk/20130919/darwin-amd64.gz for example

On Thursday, September 19, 2013 at 5:41 PM, Keith Rarick wrote:

Do you suggest leaving out the name field? (Currently always hk.) It's there in case we also want to distribute plugins.

— Reply to this email directly or view it on GitHub (https://github.com/kr/hk/issues/65#issuecomment-24783649).

kr commented 10 years ago

Sounds good to me.