Skip to content

Update opencensus to 0.8.0#3

Closed
sneako wants to merge 2 commits intoopencensus-beam:masterfrom
sneako:update-opencensus
Closed

Update opencensus to 0.8.0#3
sneako wants to merge 2 commits intoopencensus-beam:masterfrom
sneako:update-opencensus

Conversation

@sneako
Copy link
Copy Markdown
Contributor

@sneako sneako commented Feb 16, 2019

No description provided.

@codecov-io
Copy link
Copy Markdown

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.

Comment thread rebar.config
@@ -1,5 +1,5 @@
{erl_opts, [debug_info]}.
{deps, [{opencensus, "~> 0.7.0"},
{deps, [{opencensus, ">= 0.7 < 0.9"},
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

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