How to install exact version in mix.deps

I have problems when I upgrade plug_cowboy
I want to install version 2.3
I did

{:plug_cowboy, "== 2.3"}

but I got an error

How do I do that

{:plug_cowboy, "2.3.0"}
2 Likes

Great.
I tried “2.3” :slight_smile:

When you want a specific version is needs to be specified completely, as you just found out :slight_smile:

1 Like

Can anybody tell me where this syntax is documented?

I (mostly) know how the syntax works, I just don’t know where this is all written down.

Thanks

here?

1 Like

That page has examples that reference the >= operator, with no explanation of what it does.

It also does not describe how to install an exact version, or what the ~> operator is, or how to use it, or if there are any other operators available.

https://hexdocs.pm/elixir/Version.html

1 Like

It’s in Version
Bart beat me to it :cowboy_hat_face:

1 Like

Your post has nicer formatting of the link. Lets call it a draw :wink:

1 Like

Excellent, thank you both.

1 Like