circleci

rm -rf /home/circleci/.gitconfig
lread 2021-01-17T03:22:12.002600Z

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:

lread 2021-01-17T03:22:34.003Z

(oh and thanks retroactively to @borkdude for the tip from the past)

seancorfield 2021-01-17T04:14:25.003500Z

I'd be interested in why that is the default now? (and clearly wasn't before)

Marc O'Morain 2021-01-17T17:13:22.004500Z

@lee what is the error message that you with the git dependency? Can you link to the job that failed?

borkdude 2021-01-17T17:23:46.005100Z

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

borkdude 2021-01-17T17:24:13.005600Z

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 here

lread 2021-01-17T18:35:39.007500Z

@marc-omorain here’s a Slack archive with a little more detail: https://clojurians-log.clojureverse.org/circleci/2020-11-29

Marc O'Morain 2021-01-17T18:38:08.007700Z

👍

Marc O'Morain 2021-01-17T18:39:34.008800Z

I’m trying to remember why we do that re-write. Afair it’s to maintain compatibility with CircleCI.

Marc O'Morain 2021-01-17T18:40:55.010600Z

Over the years we have accumulated all sorts of quirky behavior that we can’t change without breaking folks who rely on the behavior.

lread 2021-01-17T18:48:09.012800Z

@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/

lread 2021-01-17T18:48:56.013400Z

Anyway, I’m not complaining, I do appreciate CircleCI’s commitment to open source!

Marc O'Morain 2021-01-17T19:09:13.013600Z

Thanks!

borkdude 2021-01-17T19:11:13.013800Z

Same here!

2021-01-17T19:30:02.013900Z

I had the rewrite locally to work with private go deps, maybe it's related