Code Monkey home page Code Monkey logo

Comments (10)

jjh42 avatar jjh42 commented on August 26, 2024

version is defined in mix.exs as far as I can tell. How exactly are you getting this error?

from mock.

frpaulas avatar frpaulas commented on August 26, 2024

here's the mix.exs file: https://gist.github.com/frpaulas/771d87084bad800a56442f4360467556

I would get the warning message when ever I did iex -S mix

from mock.

jjh42 avatar jjh42 commented on August 26, 2024

Oh I think you see that warning because you haven't specified a version of
mock as you have for the other dependencies.

Mock is published on hex so you can just depend on it that way rather than
directly from github if that's easier.
On Apr 2, 2016 11:34 PM, "Paul Sutcliffe" [email protected] wrote:

here's the mix.exs file:
https://gist.github.com/frpaulas/771d87084bad800a56442f4360467556

I would get the warning message when ever I did iex -S mix


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#45 (comment)

from mock.

scohen avatar scohen commented on August 26, 2024

What if the dependency is in a downstream project that we can't fix? Can you instead check to see if the version is there before relying on it?

I haven't seen similar behavior in other libraries when downloaded from github.

from mock.

pguillory avatar pguillory commented on August 26, 2024

Tried depending on mock via hex, but I still see the warning. Anyway, seems like a package should not emit warnings depending on how the dependency is expressed.

If you look at similar usage of @Version in mix.exs files, you'll notice that @Version is defined near the top. See:

You need to do that.

from mock.

jjh42 avatar jjh42 commented on August 26, 2024

Thanks. Its kinda strange because the mix documentation doesn't mention anything about this (https://hex.pm/docs/publish) but i agree a lot of packages seem to do this. Anyway I've pushed a version that has this.

from mock.

jjh42 avatar jjh42 commented on August 26, 2024

Let me know if it resolves it and I'll close the ticket.

from mock.

styx avatar styx commented on August 26, 2024

I'm on mock 0.1.3 and still see the warning. I think you should have something like this:

defmodule Mock.Mixfile do
  use Mix.Project

  @version "0.1.3"

  def project do
    [app: :mock,
     version: @version,
  ...
end

from mock.

marcisme avatar marcisme commented on August 26, 2024

@jjh42 It looks like 0.1.4 has not been published yet. The latest version available via hex is still 0.1.3.

from mock.

jjh42 avatar jjh42 commented on August 26, 2024

I've published an updated version to hex. Please let me know if you still have problems.

from mock.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.