Fork me on GitHub
#circleci
<
2021-01-17
>
lread03:01:12

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

lread03:01:34

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

seancorfield04:01:25

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

Marc O'Morain17:01:22

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

borkdude17:01:46

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

borkdude17:01:13

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

Marc O'Morain18:01:34

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

thumbnail19:01:02

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

Marc O'Morain18:01:55

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

lread18:01:09

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

lread18:01:56

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