Skip to content

Conversation

gspencergoog
Copy link
Collaborator

I started to convert a tool to null safety that had non-null-safe dependencies, and I realized that dartdoc will try and compile without the --no-strong-null-safety flag, and there was no way to specify it.

This PR adds a mechanism for adding compile arguments to Dart-based tools, so that they can specify arguments like --no-strong-null-safety (or any other args).

@google-cla google-cla bot added the cla: yes Google CLA check succeeded. label Mar 16, 2021
@gspencergoog gspencergoog changed the title Add option for setting --no-sound-null-safety on tool compilation. Add option for setting arguments for tool compilation. Mar 16, 2021
@gspencergoog gspencergoog force-pushed the no_sound_nullsafety branch 2 times, most recently from adffa69 to b3c2caa Compare March 16, 2021 00:45
@coveralls
Copy link

coveralls commented Mar 16, 2021

Coverage Status

Coverage decreased (-0.06%) to 91.622% when pulling b4bb6cb on gspencergoog:no_sound_nullsafety into f049730 on dart-lang:master.

@gspencergoog gspencergoog marked this pull request as ready for review March 16, 2021 01:28
@gspencergoog gspencergoog requested review from jcollins-g and srawlins and removed request for jcollins-g March 16, 2021 01:28
@srawlins srawlins requested a review from jcollins-g March 17, 2021 17:21
Copy link
Contributor

@jcollins-g jcollins-g left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, but the README should be updated with the new parameter.

@gspencergoog
Copy link
Collaborator Author

Added to the README.md, and I changed the name from compile-args to compile_args, to match the other tags.

README.md Outdated
@@ -289,6 +289,7 @@ dartdoc:
command: ["bin/drill.dart"]
setup_command: ["bin/setup.dart"]
description: "Puts holes in things."
compile_args: ["-no-sound-null-safety"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably should have two dashes

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my head, it did. :-) Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Google CLA check succeeded.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants