Skip to content

commands: replace force-try with try in DNS create and delete#1849

Open
ArasanDev wants to merge 1 commit into
apple:mainfrom
ArasanDev:fix/dns-force-try
Open

commands: replace force-try with try in DNS create and delete#1849
ArasanDev wants to merge 1 commit into
apple:mainfrom
ArasanDev:fix/dns-force-try

Conversation

@ArasanDev

@ArasanDev ArasanDev commented Jun 27, 2026

Copy link
Copy Markdown

Type of Change

  • Bug fix

Motivation and Context

IPAddress("127.0.0.1") is called inside async throws functions in DNSCreate and DNSDelete. The force-try (try!) is unnecessary — the surrounding function already propagates errors. This replaces both with try to comply with the NeverUseForceTry rule enforced by swift-format.

Testing

  • Tested locally
  • make test passes (561 tests)

@github-actions github-actions Bot added the cli label Jun 27, 2026
@jglogan

jglogan commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

@ArasanDev Hi! You need to configure commit signing - we can't build without verified commits.

https://github.com/apple/containerization/blob/main/CONTRIBUTING.md#pull-requests

IPAddress("127.0.0.1") is called inside async throws functions, so the
force-try is unnecessary. Use try instead to comply with NeverUseForceTry
and allow the error to propagate naturally.
@ArasanDev ArasanDev force-pushed the fix/dns-force-try branch from 1c23845 to 2c59f6c Compare June 27, 2026 17:52
@ArasanDev

Copy link
Copy Markdown
Author

Hi @jglogan — commit signing is now configured (SSH key registered on the ArasanDev account). The re-signed commit is 2c59f6c. CI shows action_required — could you approve the run when you get a chance? Thanks!

@jglogan

jglogan commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

@ArasanDev - signed, but not verified. You probably need to make sure that the email on your ssh key matches a registered GH email for your account.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants