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

fix: wrapping command for fvm #130

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

toonvanstrijp
Copy link

This PR fixes issue #129

@@ -21,11 +21,14 @@ class Command {
required String executable,
required List<String> arguments,
}) : this._(
executable == 'dart' || wrapper == Wrapper.none
wrapper == Wrapper.none
Copy link
Contributor

Choose a reason for hiding this comment

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

Why was this removed? This should short-circuit in the event that the dart command is being used. It is possible for the executable to be either a plain dart or flutter call 🤔 . We likely want to prevent configurations that have a wrapper applied to the dart command. TBH this could be clean up a bit to not have nested turneries.

@@ -14,10 +14,10 @@ void main() {
expect(command.arguments, testArgs);
expect(command.executable, './flutterw');
});
test('Wrapper.fvw', () {
test('Wrapper.fvm', () {
Copy link
Contributor

Choose a reason for hiding this comment

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

Good catch on the typo :thankyou:

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

Successfully merging this pull request may close these issues.

3 participants