-
Notifications
You must be signed in to change notification settings - Fork 114
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
compile in 17.0: clients are compiles with various OTP versions #89
Conversation
@@ -49,7 +49,7 @@ | |||
-type quorum() :: symbolic_quorum() | non_neg_integer(). | |||
-type symbolic_quorum() :: one | quorum | all | default. | |||
-type value() :: binary(). | |||
-type metadata() :: dict(). | |||
-type metadata() :: dict:dict(binary(), binary()). |
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.
Isn't this type invalid on releases < 17.0? Furthermore, dict:dict/0
is the type in previous releases, not dict:dict/2
.
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.
Yes, it's invalid. I'll fix it in the following commit by introducing a sad version-specific switch. And to give nowarn_...
to dialyzer we have to modify tools.mk
, which probably we hope to be same across all our repositories?
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.
No, you can specify the flags to use in the DIALYZER_FLAGS
variable: https://github.com/basho/tools.mk/blob/master/tools.mk#L17
I'd rather see this include a version-specific switch so that our specs can be valid on both releases. |
Example, on R16B02-basho4:
|
Isn't there a way to disable the warning for now? |
@evanmcc We're not dialyzer-clean anyway on riak_pb. It hardly matters, except that it might break compilation. |
Right, I was thinking about supressing the warning to get it to compile for |
In riak_pb, we can do without any error supressing because I added some horrible version-switch :sadpanda: |
I tried passing the same options to Dialyzer but didn't worked.
Which concequnced as follows (with R16B03-1):
So my opinion is to go with ugly version switch by rebar.config.script . |
@kuenishi I concur! |
So the current state of pull request already includes version switch script. Any more thing to be done? |
@kuenishi Just manual testing. |
👍 to merge |
compile in 17.0: clients are compiles with various OTP versions
No description provided.