-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed as not planned
dart-lang/pub
#2830Closed as not planned
Copy link
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listr: duplicateIssue is closed as a duplicate of an existing issueIssue is closed as a duplicate of an existing issueteam-toolOwned by Flutter Tool teamOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool teamTriaged by Flutter Tool team
Description
TLDR: the generate: true behavior prevents pub's up to date check from working when combined with path dependencies. The pub issue is: dart-lang/pub#2806
Short term solutions:
- Tell users to disable
generate: true - Have pub special case this package
Long-term solutions
Besides removing generate, we could replace the special generate keyword with a path dependency. This would have the same properties as the current generated package, but would work with pub.
pubspec.yaml
flutter:
generate: true
dependencies:
...Becomes
flutter:
dependencies:
flutter_gen:
path: .dart_tool/flutter_gen
...The tool can use the presence of that path dependency to opt in.
shihaohong, marcinOz, aliyazdi75, yix, solikhver and 4 more
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listr: duplicateIssue is closed as a duplicate of an existing issueIssue is closed as a duplicate of an existing issueteam-toolOwned by Flutter Tool teamOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool teamTriaged by Flutter Tool team