dparis / lein-essthree

Leiningen plugin for easy S3 project deployment and dependency resolution
MIT License
22 stars 7 forks source link

Repository config doesn't work with credentials stored in ~/.aws/credentials #3

Open brabster opened 8 years ago

brabster commented 8 years ago

Given credentials stored in ~/.aws/credentials (validated by cli access), I'm getting

Could not transfer artifact...(snip)...: Unable to load AWS credentials from any provider in the chain
This could be due to a typo in :dependencies or network issues.
If you are behind a proxy, try setting the 'http_proxy' environment variable.

When I try an pull an artifact from s3 via a repository configuration. I think this is the underlying wagon not using the credentials.

brabster commented 8 years ago

In https://github.com/dparis/lein-essthree/blob/develop/src/lein_essthree/repository.clj

If I read it correctly, the credentials are provided to the wagon via:

(merge repo-data
            {:username username
             :password password})

So this wagon requires these two parameters specified in this manner? I don't know how we can make it work with local credentials if this is the case, without changing the wagon itself