Flutter 3.7が出ていたので上げてTsukimisouをビルドしてみたら以下のエラーで失敗した:
../../AppData/Local/Pub/Cache/hosted/pub.dev/file-6.1.2/lib/src/interface/file.dart(15,16): error GE5CFE876: The method 'File.create' has fewer named arguments than those of overridden method 'File.create'. [C:\Users\gony\Documents\tsukimisou-source\build\windows\flutter\flutter_assemble.vcxproj] ../../AppData/Local/Pub/Cache/hosted/pub.dev/file-6.1.2/lib/src/interface/file.dart(15,16): error GE5CFE876: The method 'File.create' doesn't have the named parameter 'exclusive' of overridden method 'File.create'. [C:\Users\gony\Documents\tsukimisou-source\build\windows\flutter\flutter_assemble.vcxproj] ../../AppData/Local/Pub/Cache/hosted/pub.dev/file-6.1.2/lib/src/forwarding/forwarding_file.dart(22,8): error GE5CFE876: The method 'ForwardingFile.createSync' has fewer named arguments than those of overridden method 'File.createSync'. [C:\Users\gony\Documents\tsukimisou-source\build\windows\flutter\flutter_assemble.vcxproj] ../../AppData/Local/Pub/Cache/hosted/pub.dev/file-6.1.2/lib/src/forwarding/forwarding_file.dart(22,8): error GE5CFE876: The method 'ForwardingFile.createSync' doesn't have the named parameter 'exclusive' of overridden method 'File.createSync'. [C:\Users\gony\Documents\tsukimisou-source\build\windows\flutter\flutter_assemble.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(247,5): error MSB8066: Custom build for 'C:\Users\gony\Documents\tsukimisou-source\build\windows\CMakeFiles\6661d169d57e1f03fb620abec1c35c7e\flutter_windows.dll.rule;C:\Users\gony\Documents\tsukimisou-source\build\windows\CMakeFiles\0ce687da65fc51a87e223fb76179b864\flutter_assemble.rule;C:\Users\gony\Documents\tsukimisou-source\windows\flutter\CMakeLists.txt' exited with code 1. [C:\Users\gony\Documents\tsukimisou-source\build\windows\flutter\flutter_assemble.vcxproj]
fileパッケージ Fileクラスのcreate()メソッド(ともう一つ)にexclusiveパラメータが指定できないということだが、自分では使っていないパッケージなので何かのパッケージが内部で使っているのかもしれない。バージョン6.1.4に上げれば指定できるようになりそうなので、pubspec.yamlのdependenciesにfile: ^6.1.4を追加したところ回避できたようだ。
まずはめでたし。
Generated by Rui 0.4.3