Huh, just fired up an old build on circleci and scratched my head for a long while about an auth failure fetching a :git/url dep. Thanks to the Clojurians Slack archive, I found the answer: https://clojurians-log.clojureverse.org/circleci/2020-12-28
Seems a bit bananas and mystical that we have to do that, but can’t complain too much about a free service! simple_smile
(oh and thanks retroactively to @borkdude for the tip from the past)
I'd be interested in why that is the default now? (and clearly wasn't before)
@lee what is the error message that you with the git dependency? Can you link to the job that failed?
it has to do with a .gitconfig which rewrite https to ssh which then fails since for many gitlibs you don't have ssh access
this works for "fixing" it:
steps:
- checkout
- run:
name: Get rid of erroneous git config
command: |
rm -rf ~/.gitconfig
has come up a couple of times hereHiya @marc-omorain, https://app.circleci.com/pipelines/github/lread/diff-apis/20/workflows/ed38a680-5252-4c90-b0a4-1f2e7405c88c/jobs/22 prior to the @borkdude fix.
@marc-omorain here’s a Slack archive with a little more detail: https://clojurians-log.clojureverse.org/circleci/2020-11-29
👍
I’m trying to remember why we do that re-write. Afair it’s to maintain compatibility with CircleCI.
I had the rewrite locally to work with private go deps, maybe it's related
Over the years we have accumulated all sorts of quirky behavior that we can’t change without breaking folks who rely on the behavior.
@marc-omorain I wonder if any Clojure build would want this behaviour? If not, then the Clojure image generator could fix the issue maybe? Or if not… maybe just document a tip for how to overcome? https://circleci.com/docs/2.0/language-clojure/
Anyway, I’m not complaining, I do appreciate CircleCI’s commitment to open source!
Thanks!
Same here!