0

I'm scanning an Elixir project by reading the mix.lock file and parsing the output of mix deps.tree command. Later on I need to locate each dependency's .tar file. On my windows machine the location is inside the C:\Users\{user-name}\.hex\packages\hexpm folder. However on my linux machine, the .hex folder contains only cache.ets file, but no packages folder. Searching for .tar files returns nothing relevant.

Any idea where are those files hiding? cheers, eRez

eRez
  • 257
  • 8
  • 24
  • Hi, in my case I couldn't find my `.tar` files in `~//.hex/packages` either. My folder `.hex` was as you described it. I found my `.tar` files one directory above (i.e. `~/.hex/packages`). Could it be the case that you find you `.tar` files in a different `.hex` folder? – Daniel Zendejas Nov 21 '18 at 22:56

3 Answers3

0

Should be under in your home: ~/.hex

But the archives seems to be located in ~/.mix/archives/

For example, if I try to upgrade my hex:

~ > mix local.hex
Found existing entry: /home/meox/.mix/archives/hex-0.18.1
Gian Lorenzo Meocci
  • 1,136
  • 2
  • 14
  • 23
  • Thank you. you're right - it should be under `~/.hex` but its not, and the archives under `./mix/archives` are no use for me, i'm after the `.tar` files of the dependencies (which should be under `~/.hex/packages/hexpm`) – eRez Nov 19 '18 at 07:07
0

You can find that on ~/.hex/packages/hexpm.

Marcos Tapajós
  • 546
  • 2
  • 8
0

apparently the project on which a ran my tests was the first hex project on that machine, and running the mix deps.get didn't result any .tar files in the cache as expected, but when i switched to a different project all was back to normal and indeed everything as under ~/.hex/packages/hexpm

eRez
  • 257
  • 8
  • 24