Fork me on GitHub
#tools-deps
<
2022-06-08
>
Ronnie Nissan06:06:25

hey. I am having a problem installing deps-new on Fedora Linux, using both the fish and bash shells.

Ronnie Nissan06:06:51

when I run clojure -Ttools install io.github.seancorfield/deps-new '{:git/tag "v0.4.9"}' :as new I get Unreadable arg: "{:git/tag"

hiredman06:06:29

Are you sure you are using the quotes like you have there verbatim?

hiredman06:06:13

I would expect an error like that if the single quotes were missing for example

Ronnie Nissan06:06:20

I am using the exact same command as the one on the repo's readme

hiredman06:06:27

Are you running it as part of a shell script or typing it directly in the terminal?

hiredman06:06:26

The command from the readme doesn't fail like that using bash for me

Ronnie Nissan06:06:39

directly in the terminal

hiredman06:06:26

(completely different error about my git trying to launch an x11 program without an x11 display before cloning from GitHub)

hiredman06:06:48

A regular terminal emulator?

hiredman06:06:09

Are you sure that clojure is the tools.deps related script? What does clojure -Sdescribe say?

Ronnie Nissan06:06:04

as for the terminal, I am using the gnome terminal emulator. and I do not think that should matter

Ronnie Nissan06:06:31

my clojure and java install are all inside a podman container (using distrobox)

hiredman06:06:27

You may need some extra quotation to pass the args through the extra layer there

hiredman06:06:01

'\' instead of just '

hiredman06:06:32

Or not, distrobox would just run the shell

hiredman06:06:09

What kind of error do you get if you replace :git/tag with :foo/bar in the command?

Ronnie Nissan06:06:49

Unreadable arg: "{:foo/bar"

Ronnie Nissan06:06:05

the escaping worked, kinda

Ronnie Nissan06:06:29

Cloning: 
Execution error (ExceptionInfo) at clojure.tools.deps.alpha.extensions.git/coord-err (git.clj:44).
Library io.github.seancorfield/deps-new has invalid tag: v0.4.9

hiredman06:06:45

Are you using the distrobox export feature?

hiredman06:06:10

That is what is making it require extra quoting

Ronnie Nissan06:06:27

but running the command inside the container has the same resoult

hiredman06:06:19

How are you running it inside the container? Launching a shell in the container and typing it in?

Ronnie Nissan06:06:01

distrobox-enter clojure where clojure is the name of the container

Ronnie Nissan06:06:10

so from inside the container, with the escape, it returns this, Key is missing value: new

Ronnie Nissan06:06:23

maybe I should nuke the container and start fresh

hiredman06:06:07

Try removing the export

Ronnie Nissan07:06:01

now it works, weird

Ronnie Nissan07:06:50

maybe the full path of the clojure bin should be specified when running it