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

Deprecation warnings from xml_builder #10

Open
hexedpackets opened this issue Jul 15, 2021 · 0 comments
Open

Deprecation warnings from xml_builder #10

hexedpackets opened this issue Jul 15, 2021 · 0 comments

Comments

@hexedpackets
Copy link

Using xml_builder > 2.0.0 with ex_aws_route53 causes the following warning to be printed to stderr:

warning: doc/1 is deprecated. Use document/1 with generate/1 instead.
  (xml_builder 2.1.4) lib/xml_builder.ex:62: XmlBuilder.doc/1
  (ex_aws_route53 2.0.2) lib/ex_aws/route53.ex:101: ExAws.Route53.change_record_sets/2
  (atuin 0.1.0) lib/atuin/trigger/webhook/dns.ex:23: Atuin.Trigger.Webhook.DNS.route53_update/3
  (stdlib 3.14.1) erl_eval.erl:680: :erl_eval.do_apply/6
  (elixir 1.12.2) src/elixir.erl:280: :elixir.recur_eval/3
  (elixir 1.12.2) src/elixir.erl:265: :elixir.eval_forms/3

This happens at runtime on every call with ex_aws_route53 (its an IO.warn call in the doc/1 function).

The deprecation warning was added in 2.1.0, so possible solutions would be to either set the dependency to < 2.1.0 or update the calling code and set the dependency to >= 2.1.0. Considering that 2.1.0 was released over 3 years ago I would guess that its pretty safe to set 2.1.0 as the lower bounds.

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

No branches or pull requests

1 participant