Skip to content

pre_configure.sh missing - mix release fails with distillery v1.4.1 #143

@janispauls

Description

@janispauls
$ mix release
==> Assembling release..
==> Building release conform_demo:0.1.0 using environment dev
==> Overlay failed, no such file or directory:
    file: _build/dev/lib/conform/priv/bin/pre_configure.sh
    overlay: {:copy, "/Users/jpauls/elixir/conform_demo/_build/dev/lib/conform/priv/bin/pre_configure.sh", "releases/<%= release_version %>/hooks/pre_configure.d/00_conform_pre_configure.sh"}
$ cat mix.lock
%{"conform": {:hex, :conform, "2.5.2", "7035787a9c09d28607745444e7a1700426dc47c452634a5694033fa2fbb3414c", [], [{:neotoma, "~> 1.7.3", [hex: :neotoma, repo: "hexpm", optional: false]}], "hexpm"},
  "distillery": {:hex, :distillery, "1.4.1", "546d851bf27ae8fe0727e10e4fc4e146ad836eecee138263a60431e688044ed3", [], [], "hexpm"},
  "neotoma": {:hex, :neotoma, "1.7.3", "d8bd5404b73273989946e4f4f6d529e5c2088f5fa1ca790b4dbe81f4be408e61", [], [], "hexpm"}}

After upgrading distillery to 1.5.x it works fine. I will probably upgrade to 1.5.x, just wanted to let You know the issue exists since it looks like it's supposed to work:

if_distillery :lt, "1.5.0", do: "pre_configure", else: "post_configure"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions