-
Notifications
You must be signed in to change notification settings - Fork 16
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
Feature/replace cleanup workflow with cli app #62
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@morikann
いったんいくつかコメントしましたので、ご確認お願いします 🙏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
対応ありがとうございます。
責務分割などだいたい良いと思いました。
いくつかコメントしましたのでご確認お願いします。
extension _ProcessResultExt on ProcessResult { | ||
void throwExceptionIfFailed() { | ||
final exitStatus = ExitStatus.fromCode(exitCode); | ||
if (exitStatus != ExitStatus.success) { | ||
throw ProcessRunException(exitStatus, stdout.toString()); | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Process.runSync
自体は例外を出さないということですよね?
良さそうです
FB 対応後のコードで問題なく CLI が動いていることを確認しました。 |
@morikann |
@blendthink 実行結果は⇩となります! |
); | ||
_fileSystem.file(analysisOptionsPath).writeAsStringSync(''' | ||
# https://pub.dev/packages/yumemi_lints | ||
include: package:yumemi_lints/flutter/$flutterVersion/recommended.yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yumemi_lints 2.0.0 への対応について Issue を作成しておきました。
#63
Process.runSync( | ||
'dart', | ||
['pub', 'global', 'activate', 'fvm'], | ||
).throwExceptionIfFailed(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
実行ファイルを生成して、それを利用する場合は Homebrew 経由で取得する必要がありそう。
#64
Process.runSync( | ||
'fvm', | ||
['install', flutterVersion.toString(), '-s'], | ||
).throwExceptionIfFailed(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fvm 使わなくても対応できるかもしれないと思ったので Issue 作成しました。
考慮漏れているかもしれないので、このプルリクエストでは対応しない方針で大丈夫です、、!
#65
5c12fd7
to
02b593f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ご対応ありがとうございました!LGTM
提出前チェックリスト (必須)
概要
また、問題なくアプリが起動することも確認しました。
Issue(オプション)
close #41