Fix pub get from clean state

This commit is contained in:
Simon Binder 2021-05-21 10:47:42 +02:00
parent e5e9e1247c
commit 29bb6a73c8
4 changed files with 17 additions and 13 deletions

View File

@ -6,11 +6,12 @@ environment:
dependencies:
moor:
sqlite3: ^0.1.3
sqlite3: ^1.0.0
benchmark_harness: ^1.0.5
intl: ^0.16.0
uuid: ^2.0.0
path: ^1.6.0
uuid: ^3.0.0
path: ^1.8.0
dev_dependencies:
moor_generator:
build_runner:

View File

@ -56,17 +56,17 @@ List<File> filesToProcess(String moorSubproject) {
}
class MoorResolver extends Resolver {
final String projectRoot;
final String? projectRoot;
MoorResolver({this.projectRoot, String packagesPath})
MoorResolver({this.projectRoot, String? packagesPath})
: super(packagesPath: packagesPath);
@override
String resolveSymbolicLinks(String path) {
String? resolveSymbolicLinks(String path) {
if (p.isAbsolute(path)) {
return super.resolveSymbolicLinks(path);
} else {
return super.resolveSymbolicLinks(p.join(projectRoot, path));
return super.resolveSymbolicLinks(p.join(projectRoot!, path));
}
}
}

View File

@ -3,13 +3,13 @@ publish_to: none
description: Tools used during development or in CI runs
environment:
sdk: '>=2.6.0 <3.0.0'
sdk: '>=2.12.0 <3.0.0'
dependencies:
coverage: '^0.14.0'
path: ^1.6.4
coverage: ^1.0.2
path: ^1.8.0
simons_pub_uploader:
hosted:
url: https://simonbinder.eu
name: simons_pub_uploader
version: ^1.0.2
version: ^1.0.2

View File

@ -2,6 +2,9 @@ name: analyzer_load_moor_plugin
version: 1.0.0
description: This pubspec is a part of moor and determines the version of the moor analyzer to load
environment:
sdk: '>=2.9.0 <3.0.0'
dependencies:
moor_generator: ^3.0.0
web_socket_channel: ^1.0.15
@ -10,6 +13,6 @@ dependencies:
#dependency_overrides:
# moor_generator:
# path: /home/simon/IdeaProjects/moor/moor_generator
# path: /path/to/moor/moor_generator
# sqlparser:
# path: /home/simon/IdeaProjects/moor/sqlparser
# path: /path/to/moor/sqlparser