Fork me on GitHub
#tools-deps
<
2018-07-16
>
alvina00:07:57

thanks a lot

levitanong08:07:11

Hi all, trying to get the clojure:tools-deps docker image to work with gitlab-ci. Does anyone have experience in the matter?

Andreas Liljeqvist09:07:34

I have never used gitlab-ci, but here is my .yml for running on bitbucket. I imagine it would look quite similar. https://pastebin.com/SE1shJE3

delaguardo10:07:29

What kind of problems you are seeing?

levitanong11:07:49

@U04V4KLKC clj: command not found. Same with clojure. I’ve tried purposefully misspelling the docker image to see if there’s a distinct error when the docker image isn’t found, but it appears gitlab-ci just silently fails, and proceeds to run as if from a blank image.

levitanong11:07:23

@U7YG6TEKW Yeah, mine looks similar, except gitlab complains that the clojure command isn’t found.

delaguardo11:07:38

clj should is not available cause readline is not installed. But clojure should be there.

delaguardo11:07:34

Could you show your config file?

delaguardo11:07:03

Also I can suggest to use clojure:tools-deps as your image so it is hard to misspell the name

levitanong11:07:52

test:tools-deps:
  image: clojure:tools-deps-alpine
  script:
    - clojure -A:test

levitanong11:07:09

Skipping Git submodules setup
$ clojure -A:test
bash: line 52: clojure: command not found
ERROR: Job failed: exit status 1

delaguardo11:07:44

That is odd… My config file looks a bit different, but it should not be a problem

levitanong11:07:41

One of the first things I tried was:

image: clojure:tools-deps

test:
  script:
    - clojure -A:test

levitanong11:07:49

same error 😮

delaguardo11:07:33

Which version of gitlab-runner you are using?

levitanong11:07:24

Running with gitlab-ci-multi-runner 9.5.1 (96b34cc)

delaguardo11:07:36

I’m using 11.0. Let me downgrade, it can be a problem

delaguardo12:07:21

Unfortunately, I can not downgrade to 9.5.1 on my mac. Looks like a bunch of dependencies conflicts there. Is it possible for you to upgrade yours and try again?

levitanong12:07:24

Hmm. I’m working off of my company’s on-prem installation of gitlab. I’ll ask the dev-ops guy if he can upgrade it. I’ll keep you posted!

levitanong14:07:47

Apparently our devops guy needs to backup all our repos over the weekend to upgrade gitlab. I’ll prolly have to get back to you in a week. Good thing lein still works!

levitanong03:07:08

hello, tried again on gitlab-runner 11.1.0. Still says clojure: command not found. Do you think it’s because we’re using the on-prem community version of gitlab?

levitanong06:07:06

Oop, scratch that. we had a faulty config somewhere else. Works now, thanks!

darnok09:07:54

Hi. I have a problem w tools-deps. I'm using :local/root quite extensively and I noticed a problem. If I have a project project1 that points to another library with {:local/root "../../libs/abc"} and then that library uses another library {:local/root "../other-lib" it doesn't resolve the abc library classpath correctly.

darnok10:07:01

It resolves the second local/root according to the project1 root.

dominicm10:07:56

yeah. There is a JIRA for that.

dominicm10:07:19

I've been able to "flatten" everything up until now though.

darnok11:07:20

I think it should be fixed https://dev.clojure.org/jira/browse/TDEPS-74. Probably, it's not that easy to fix.

martinklepsch11:07:08

# clj
Please install rlwrap for command editing or use "clojure" instead.
# echo $?
0
has changing the status code here to some non-zero value been discussed before?

delaguardo12:07:36

I remember such discussion but can’t find an issue. But I’m definitely want to vote for it

Alex Miller (Clojure team)12:07:20

no ticket, but feel free to log on and/or provide a patch

martinklepsch13:07:47

@U064X3EF3 can you point me to the source of the clj clojure scripts maybe? thanks 🙂

Alex Miller (Clojure team)13:07:52

Tickets go to https://dev.clojure.org/jira/browse/TDEPS, patches for that stuff will be on https://github.com/clojure/brew-install (scripts are at src/main/resources)

stathissideris12:07:43

hello, is there some special magic to make git deps from private repos work? I’m using the [email protected]:... URL and auth fails

stathissideris12:07:14

thanks! I’ll have a look