Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow support for mix releases in 1.9 #12

Closed
wants to merge 1 commit into from

Conversation

Adzz
Copy link

@Adzz Adzz commented Jul 8, 2019

Without this, we get an error:

** (Mix) Undefined applications: [inet_cidr]

I think if we put the dep inet_cidr under the included_applications it thinks it's an application when it is a library? that's a guess though. Either way i think having them defined in the deps now does what putting them in applications / included_applications used to do.

Without this, we get an error: ** (Mix) Undefined applications: [inet_cidr]
docs: [source_url: "https://github.com/ajvondrak/remote_ip"]]
end

def application do
Copy link
Author

@Adzz Adzz Jul 8, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alternatively we can do this:

  def application do
    [applications: [:plug, :combine, :inet_cidr]]
  end

That might support 1.3 and less better?

@ajvondrak ajvondrak mentioned this pull request Jul 31, 2019
@ajvondrak ajvondrak closed this in d1e5e51 Aug 20, 2019
ajvondrak pushed a commit that referenced this pull request Aug 20, 2019
As noted in #12, #14, #15, #16, #17, and even way back in a comment on
a5fb55b, my prior inclination to try to
use `:included_applications` and `:applications` separately was
ill-fated. Under Elixir 1.9.0, Mix started blowing up properly on `mix
release` with

  ** (Mix) :combine is listed both as a regular application and as an
  included application

So I guess everything should go under `:applications` by design. /shrug

I'm trusting this to be backwards-compatible with Elixir 1.3, per the
discussions on #1 from way back when. 😅
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant