Comments (10)
version is defined in mix.exs as far as I can tell. How exactly are you getting this error?
from mock.
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.
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/771d87084bad800a56442f4360467556I 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.
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.
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:
- https://github.com/elixir-lang/ecto/blob/master/mix.exs
- https://github.com/phoenixframework/phoenix/blob/master/mix.exs
You need to do that.
from mock.
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.
Let me know if it resolves it and I'll close the ticket.
from mock.
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.
@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.
I've published an updated version to hex. Please let me know if you still have problems.
from mock.
Related Issues (20)
- defdelegate problem HOT 1
- Feature Request: Capture arguments
- assert_called with pattern matching HOT 10
- Assert called doesn't work on second function call
- Tests sometimes fail with `** (MatchError) no match of right hand side value: false` HOT 4
- Proposal: clearer calls assertions with pattern matching HOT 2
- Enable passing the caller module attributes to with_mocks macro HOT 1
- Proposal: add `assert_not_called` macro HOT 2
- Return different values depending on number of times a function is called HOT 5
- Cannot mock Logger.error/1 HOT 1
- Mocking the same function in 2 separate tests while async: false makes test fail.
- Feature Request: Support per-process mocking HOT 3
- Publish README with Documentation
- Feature request: support for `on_exit` style teardown with `setup_with_mocks`
- Typo in the Mock module. Location: `call_history` doc
- Problem with mock function HOT 1
- No Release to hex.pm since May, 2021 HOT 1
- Fails to mock function called from function in same module HOT 2
- Does not check :meck.new return code, crashes in runtime on Elixir 1.8-rc.0 HOT 1
- ExUnit runner gets killed when mock is used inside an umbrella project AND processes HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mock.