mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-02-20 21:04:17 +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
|
||||
|
||||
|
|
5
mix.exs
5
mix.exs
|
@ -14,7 +14,7 @@ defmodule Livebook.MixProject do
|
|||
elixirc_paths: elixirc_paths(Mix.env()),
|
||||
start_permanent: Mix.env() == :prod,
|
||||
aliases: aliases(),
|
||||
deps: with_lock(deps()),
|
||||
deps: with_lock(target_deps(Mix.target()) ++ deps()),
|
||||
escript: escript(),
|
||||
releases: releases(),
|
||||
package: package()
|
||||
|
@ -72,6 +72,9 @@ defmodule Livebook.MixProject do
|
|||
]
|
||||
end
|
||||
|
||||
defp target_deps(:app), do: [{:app_builder, path: "app_builder"}]
|
||||
defp target_deps(_), do: []
|
||||
|
||||
@lock (with {:ok, contents} <- File.read("mix.lock"),
|
||||
{:ok, quoted} <- Code.string_to_quoted(contents, warn_on_unnecessary_quotes: false),
|
||||
{%{} = lock, _binding} <- Code.eval_quoted(quoted, []) do
|
||||
|
|
Loading…
Reference in a new issue