mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-10 21:46:46 +08:00
Small fixes (#896)
* Hide app builder unless target matches * Fix compile-time warnings on Elixir v1.14+
This commit is contained in:
parent
8fb937340a
commit
112b47908d
2 changed files with 5 additions and 2 deletions
|
@ -108,7 +108,7 @@ defmodule Livebook.Notebook.Explore do
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
user_configs = Application.fetch_env!(:livebook, :explore_notebooks)
|
user_configs = Application.compile_env(:livebook, :explore_notebooks, [])
|
||||||
|
|
||||||
notebook_configs = [welcome_config] ++ user_configs ++ other_configs
|
notebook_configs = [welcome_config] ++ user_configs ++ other_configs
|
||||||
|
|
||||||
|
|
5
mix.exs
5
mix.exs
|
@ -14,7 +14,7 @@ defmodule Livebook.MixProject do
|
||||||
elixirc_paths: elixirc_paths(Mix.env()),
|
elixirc_paths: elixirc_paths(Mix.env()),
|
||||||
start_permanent: Mix.env() == :prod,
|
start_permanent: Mix.env() == :prod,
|
||||||
aliases: aliases(),
|
aliases: aliases(),
|
||||||
deps: with_lock(deps()),
|
deps: with_lock(target_deps(Mix.target()) ++ deps()),
|
||||||
escript: escript(),
|
escript: escript(),
|
||||||
releases: releases(),
|
releases: releases(),
|
||||||
package: package()
|
package: package()
|
||||||
|
@ -72,6 +72,9 @@ defmodule Livebook.MixProject do
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
defp target_deps(:app), do: [{:app_builder, path: "app_builder"}]
|
||||||
|
defp target_deps(_), do: []
|
||||||
|
|
||||||
@lock (with {:ok, contents} <- File.read("mix.lock"),
|
@lock (with {:ok, contents} <- File.read("mix.lock"),
|
||||||
{:ok, quoted} <- Code.string_to_quoted(contents, warn_on_unnecessary_quotes: false),
|
{:ok, quoted} <- Code.string_to_quoted(contents, warn_on_unnecessary_quotes: false),
|
||||||
{%{} = lock, _binding} <- Code.eval_quoted(quoted, []) do
|
{%{} = lock, _binding} <- Code.eval_quoted(quoted, []) do
|
||||||
|
|
Loading…
Add table
Reference in a new issue