【发布时间】:2016-08-25 21:03:46
【问题描述】:
当我尝试在十六进制上发布我的包的新版本时,它会打印以下警告:
WARNING! Excluded dependencies (not part of the Hex package):
ex_doc
我运行命令的全文:
$ mix hex.publish
Publishing usefulness 0.0.5
Dependencies:
earmark >= 0.0.0
Files:
lib/usefulness.ex
lib/usefulness/stream.ex
lib/usefulness/string.ex
config/config.exs
test/test_helper.exs
test/usefulness_test.exs
mix.exs
README.md
LICENSE
App: usefulness
Name: usefulness
Description: Useful things
Version: 0.0.5
Build tools: mix
Licenses: Apache 2.0
Maintainers: afasdasd
Links:
Github: https://github.com/b-filip/usefulness
Elixir: ~> 1.2
WARNING! Excluded dependencies (not part of the Hex package):
ex_doc
Before publishing, please read Hex Code of Conduct: https://hex.pm/docs/codeofconduct
Proceed? [Yn]
我不知道这个警告是什么意思
这是我在 mix.exs 中的project.deps 的内容:
defp deps do
[
{:ex_doc, "~> 0.11", only: :dev},
{:earmark, ">= 0.0.0"}
]
end
【问题讨论】:
-
我相信 Martin 是对的,但没有看到您如何在 mix.exs 中声明依赖项,我们无法确定。
-
顺便说一下,如果这是您真正为维护者列出的内容,请在其中输入真正的价值。
-
除非你真的依赖 Earmark,否则我也会将其标记为 Dev only 依赖。
标签: hex elixir elixir-mix