Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'mix licenses' doesn't work in Elixir 1.9 #6

Open
garthk opened this issue Dec 8, 2019 · 1 comment
Open

'mix licenses' doesn't work in Elixir 1.9 #6

garthk opened this issue Dec 8, 2019 · 1 comment

Comments

@garthk
Copy link
Collaborator

garthk commented Dec 8, 2019

Warning shot during mix deps.compile with 1.8.2:

warning: Mix.Dep.loaded/1 is deprecated. Mix.Dep.loaded/1 was private API and you should not use it
  lib/licensir/scanner.ex:35

Failure with 1.9.4:

$ mix licenses
Notice: This is not a legal advice. Use the information below at your own risk.
** (UndefinedFunctionError) function Mix.Dep.loaded/1 is undefined or private
    (mix) Mix.Dep.loaded([])
    lib/licensir/scanner.ex:27: Licensir.Scanner.scan/0
    lib/mix/tasks/licenses.ex:18: Mix.Tasks.Licenses.run/1
    (mix) lib/mix/task.ex:331: Mix.Task.run_task/3
    (mix) lib/mix/cli.ex:79: Mix.CLI.run_task/2
@garthk
Copy link
Collaborator Author

garthk commented Dec 8, 2019

For now, to get the “right” Elixir and Erlang with asdf:

  • asdf plugin-add elixir
  • asdf plugin-add erlang
  • asdf install elixir 1.8.2-otp-21
  • asdf install erlang 21.3.8.6
  • asdf local elixir 1.8.2-otp-21
  • asdf local erlang 21.3.8.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant