![](/img/trans.png)
[英]How do I load an Elixir library into iex without adding it to a project's mix.exs deps?
[英]Confused about compile_path in elixir's mix.exs
我對mix.exs中的compile_path
設置感到困惑。 設置如下:
defmodule MyProject.Mixfile do
use Mix.Project
def project do
[ app: :my_project,
version: "0.0.1",
elixir: "~> 0.12.0",
deps: deps,
escript_main_module: MyProject,
compile_path: "ebing/ew/ebin"]
end
# Configuration for the OTP application
def application do
[]
end
# Returns the list of dependencies in the format:
# { :foobar, git: "https://github.com/elixir-lang/foobar.git", tag: "0.1" }
#
# To specify particular versions, regardless of the tag, do:
# { :barbat, "~> 0.1", github: "elixir-lang/barbat" }
defp deps do
[]
end
end
使用compile_path並運行mix compile
我仍然找不到目錄ebing / we / ebin。 我也嘗試過先創建目錄,但隨后它仍然是空的。 我還嘗試了mix compile --force
,它仍然在默認目錄中構建。
有人可以幫助您了解compile_path
設置嗎?
:compile_path
選項不再受支持。 Mix將始終編譯為_build
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.