Build from AutoDevOps fails for Clojure projects

There is some network issue with Clojure projects when using default AutoDevOps config. Instead of pulling dependencies from remote repositories it tries localhost instead.

No config => pulling dependencies fails

https://gitlab.com/dz-test-group/clj-hello-world/-/jobs/258346656

-----> Building with Leiningen
       Running: lein with-profile production compile :all
       Downloading Leiningen to /app/.lein/self-installs/leiningen-2.8.3-standalone.jar now...
       % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
       Dload  Upload   Total   Spent    Left  Speed
       
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   618    0   618    0     0   3838      0 --:--:-- --:--:-- --:--:--  3838
       
  1 12.9M    1  134k    0     0   477k      0  0:00:27 --:--:--  0:00:27  477k
100 12.9M  100 12.9M    0     0  33.5M      0 --:--:-- --:--:-- --:--:--  122M
       Could not transfer artifact lein-ring:lein-ring:jar:0.9.7 from/to central (https://repo1.maven.org/maven2/): Connect to  [localhost/127.0.0.1] failed: Connection refused (Connection refused)
       Could not transfer artifact lein-ring:lein-ring:jar:0.9.7 from/to clojars (https://repo.clojars.org/): Connect to  [localhost/127.0.0.1] failed: Connection refused (Connection refused)
       Could not transfer artifact lein-ring:lein-ring:pom:0.9.7 from/to central (https://repo1.maven.org/maven2/): Connect to  [localhost/127.0.0.1] failed: Connection refused (Connection refused)
       This could be due to a typo in :dependencies, file system permissions, or network issues.
       If you are behind a proxy, try setting the 'http_proxy' environment variable.
       !     Failed to build.
The command '/bin/sh -c /bin/herokuish buildpack build' returned a non-zero code: 1

Custom gitlab-ci.yml file with herokuish build => pulling dependencies works

https://gitlab.com/dz-test-group/clj-hello-world/-/jobs/258343322

build:
  stage: test
  image: gliderlabs/herokuish:latest
  before_script:
    - cp -R . /tmp/app
  script:
    - /bin/herokuish buildpack build
  only:
    - branches
Assignee Loading
Time tracking Loading