haskell-works / cabal-cache

CI assistant
BSD 3-Clause "New" or "Revised" License
44 stars 11 forks source link

Trying to use root of the S3 bucket results in `/` key. #152

Closed Fuuzetsu closed 1 year ago

Fuuzetsu commented 3 years ago

If we set the bucket url to something like s3://foo, cabal-cache will upload objects to s3://foo//v2/…. Note the extra slash.

It's ugly and confusing and means we have to specify some prefix for no reason if the bucket is dedicated to the cabal cache.

newhoggy commented 3 years ago

Can you check if the following PR fixes this for you?

https://github.com/haskell-works/cabal-cache/pull/157