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

Update opencensus to 0.8.0 #3

Closed
wants to merge 2 commits into from

Conversation

sneako
Copy link
Contributor

@sneako sneako commented Feb 16, 2019

No description provided.

@codecov-io
Copy link

codecov-io commented Feb 16, 2019

Codecov Report

Merging #3 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update acd987d...7f575bd. Read the comment docs.

@@ -1,5 +1,5 @@
{erl_opts, [debug_info]}.
{deps, [{opencensus, "~> 0.7.0"},
{deps, [{opencensus, ">= 0.7 < 0.9"},
Copy link
Member

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.

Copy link
Contributor Author

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?

Copy link
Member

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.

Copy link
Contributor Author

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

Copy link
Member

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.

Copy link
Member

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.

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.

4 participants