-
Notifications
You must be signed in to change notification settings - Fork 4
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
Update opencensus to 0.8.0 #3
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3 +/- ##
======================================
Coverage 67.9% 67.9%
======================================
Files 2 2
Lines 81 81
======================================
Hits 55 55
Misses 26 26 Continue to review full report at Codecov.
|
@@ -1,5 +1,5 @@ | |||
{erl_opts, [debug_info]}. | |||
{deps, [{opencensus, "~> 0.7.0"}, | |||
{deps, [{opencensus, ">= 0.7 < 0.9"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not supported by rebar3. If this "worked" it means it likely has a bug that results in it ignoring either the 0.7 or the 0.9.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, gotcha. In that case, how could we express this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can't. rebar3 doesn't try to resolve a version that matches all declared constraints, it takes a match for the first occurrence of the dep it encounters.
So if your project using opencensus_datadog
also requests opencensus 0.8.0
it doesn't matter what version the opencensus_datadog
dep has for opencensus.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It appears that mix
is a bit more strict than rebar3
.
Failed to use "opencensus" (version 0.8.0) because
deps/opencensus_plug/mix.exs requires >= 0.6.0 and <= 0.8.0
oc_datadog (version 0.2.0) requires ~> 0.7.0
opencensus_elixir (version 0.2.0) requires ~> 0.8.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Argh, yea, wasn't thinking about mix. I think you have to use override: true
at the top level for now. I think we just have to remove opencensus
as a dep from these since it was only needed for being able to declare the behaviour.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tsloughter @sneako I have done such version limitation due to fact that I have proposed a lot of changes to the opencensus
itself, and if census-instrumentation/opencensus-erlang#136 land then it will break if someone do not lock on correct versions.
No description provided.