Is there a way to tell lein which region an S3 bucket as a Maven repo is in? I'm hitting a problem where I need to use credentials from account X to access a Maven repo bucket in account Y, and it's failing. Digging into that, it seems to be because Maven is trying to do a bucket location lookup, and permissions for that cannot be granted cross-account. deps.edn allows you to manually specify ?region=xxxxx as part of the repo URL, but the same doesn't seem to be working for project.clj (See https://clojurians.slack.com/archives/C03S1KBA2/p1628859798359100)
This message was deleted.
My understanding from the docs is that path style addressing is only valid for http:// bucket paths. Is that wrong? Cool if so
Hmm. Doesn't seem to work for the CLI for me 😞
This message was deleted.
Everything I can find about s3-wagon-private is about publishing. I just need to consume what has been published elsewhere. But it's not a public bucket and I don't have a user in the bucket account
The issue seems to be that the permissions for GetBucketLocation can only be granted to users/roles in the same account, not cross account like every other API call... So I can ListObjects and GetObject, but if my calls need to look up the location, it fails
That's why I can get clj to work, because it provides a param to override the location so the lookup isn't needed
Sadly it doesn't look like lein offers the same functionality
@carr0t clj and lein use different maven libraries
https://clojure.org/reference/deps_and_cli Have you read the docs about bucket regions?
This works fine for clj/`deps.edn`, but not for lein. We still need lein for bits of our build and deployment pipeline
I fixed the clj issue later down the linked thread, but lein is still causing issues
I guess I could hack something together where I invoke clj to populate my local Maven cache and then launch lein, which finds the relevant files locally, but... eww
you can set region directly
hello everyone - need a bit of help with deploying to clojars.
when I run lein deploy clojars it goes through steps of copying over the jar and pom.xml files but chokes on the metdata.xml file -- complaining about missing checksum
ReasonPhrase: Forbidden - no checksums provided for <repo.jar.asc>
Any idea how I could fix this or debug further