Skip to content

package:source_gen/source_gen can no-longer be imported inside Flutter codebases #767

@rrousselGit

Description

@rrousselGit

It appears that the main source_gen/source_gen.dart import can no-longer be used within flutter test

We can no-longer do:

// test/my_test.dart

import 'package:source_gen/source_gen.dart';
void main() {}

flutter test test/my_test.dart

Some of my codebases have the testsuite of generators depend on both Generator-related stuff and Flutter, so that tests can use resolveFiles and analyze Flutter code.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions