Skip to content

Conversation

@devoncarew
Copy link
Contributor

@devoncarew devoncarew commented Mar 15, 2024

  • rename RetrieveFlags.option to RetrieveFlags.optionWithDefault

This rename will let us land dart-archive/args#248 in the sdk repo; without this, the new option() method is used instead of the RetrieveFlags.option extension method, and the two have different return types (String? vs String).

output: ../../third_party/pkg/pub/lib/src/command/lish.dart:48:57: Error: The argument type 'String?' can't be assigned to the parameter type 'String' because 'String?' is nullable and 'String' isn't.
        return validateAndNormalizeHostedUrl(argResults.option('server'));
                                                        ^

  • I’ve reviewed the contributor guide and applied the relevant portions to this PR.
Contribution guidelines:

Note that many Dart repos have a weekly cadence for reviewing PRs - please allow for some latency before initial review feedback.

@sigurdm sigurdm merged commit 958069f into master Mar 18, 2024
@sigurdm sigurdm deleted the rename_extension branch March 18, 2024 08:30
@sigurdm
Copy link
Contributor

sigurdm commented Mar 18, 2024

Rolling into sdk here: https://dart-review.googlesource.com/c/sdk/+/357326

@devoncarew
Copy link
Contributor Author

Rolling into sdk here: https://dart-review.googlesource.com/c/sdk/+/357326

Thanks!

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.

3 participants