Skip to content
This repository has been archived by the owner on Apr 7, 2018. It is now read-only.

Commit

Permalink
Ensure fully expanded paths are used so symlinks in dev mode are buil…
Browse files Browse the repository at this point in the history
…t properly
  • Loading branch information
bitwalker committed Jul 29, 2014
1 parent fe3823b commit ad63a52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/exrm/utils.ex
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ defmodule ReleaseManager.Utils do
def relx(name, version, verbosity, upgrade?, dev) do
# Setup paths
config = rel_file_dest_path "relx.config"
output_dir = @relx_output_path
output_dir = @relx_output_path |> Path.expand
# Determine whether to pass --dev-mode or not
dev_mode? = case dev do
true -> "--dev-mode"
Expand Down
6 changes: 3 additions & 3 deletions lib/mix/tasks/release.ex
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@ defmodule Mix.Tasks.Release do
lib_dirs = case Mix.Project.config |> Keyword.get(:umbrella?, false) do
true ->
[ elixir_path,
'../../_build/prod',
'../../#{Mix.Project.config |> Keyword.get(:deps_path) |> String.to_char_list}' ]
'#{"_build/prod" |> Path.expand}',
'#{Mix.Project.Config |> Keyword.get(:deps_path) |> Path.expand}' ]
_ ->
[ elixir_path,
'../../_build/prod' ]
'#{"_build/prod" |> Path.expand}' ]
end
# Build release configuration
relx_config = relx_config
Expand Down

0 comments on commit ad63a52

Please sign in to comment.