Do not crash when unpacking empty packages
Open
@wojtekmach is already working on this.
Since Nov 14, 2019.
- Dominant language
- Erlang
- Stars
- 105
- Forks
- 34
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 6
Description
E.g.:
mix hex.package fetch loki 0.1.0 --unpack
** (MatchError) no match of right hand side value: {:error, :enoent}
(hex 0.20.1) src/mix_hex_tarball.erl:220: :mix_hex_tarball.copy_metadata_config/2
(hex 0.20.1) src/mix_hex_tarball.erl:209: :mix_hex_tarball.finish_unpack/1
(hex 0.20.1) lib/hex.ex:183: Hex.unpack_tar!/2
(hex 0.20.1) lib/mix/tasks/hex.package.ex:114: Mix.Tasks.Hex.Package.fetch/4
(mix 1.10.0-dev) lib/mix/task.ex:330: Mix.Task.run_task/3
(mix 1.10.0-dev) lib/mix/cli.ex:83: Mix.CLI.run_task/2
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.