riverrun / phauxth

Not actively maintained - Authentication library for Phoenix, and other Plug-based, web applications
409 stars 20 forks source link

[BUG] Can't download archive install #118

Open Adzz opened 4 years ago

Adzz commented 4 years ago

Environment

Current behavior

When I try this:

mix archive.install https://github.com/riverrun/phauxth_installer/raw/master/archives/phauxth_new.ez

I get this:

** (Mix) fetching from URIs require a checksum to be given

Could not run archive.install for:

    https://github.com/riverrun/phauxth_installer/raw/master/archives/phauxth_new.ez

Please download the file above to your current directory and run:

    mix archive.install ./phauxth_new.ez

Am I doing something wrong?

riverrun commented 4 years ago

Thanks for raising this issue. It looks like the way archives are installed has changed recently. I will look into this at the weekend and get back to you soon.

fnchooft commented 4 years ago

It is not only your package -> i had the same issue with "mix eqc.install --mini". Seems to be something more generic. https://github.com/tony612/eqc_ex/commit/43759ba1fa56dec40b0346f2e23268d18f3ccda1 - maybe this points into the right direction.

riverrun commented 4 years ago

The way mix archive.install works has changed, and so you cannot install directly from a url anymore.

I need to look into this further, but for the time being, you will still be able to install the archive by downloading the archive and then running mix archive.install ./phauxth_new.ez.

dsignr commented 3 years ago

mix archive.install ./phauxth_new.ez

Still fails with ** (Mix) Installation failed: invalid archive file unfortunately.