Skip to content

Commit e0541e4

Browse files
Generator: fix part-partof test by specifying dependency versions #138
No version allows any major version. However, as in this case a major version may have breaking changes or require a higher minimum Dart SDK. As these tests are run on CI any new major third-party package update may break the build. Instead specify a version with caret syntax to not allow major version upgrades and to require minimum versions supported by the minimum Dart SDK the test package indicates.
1 parent 8746c2f commit e0541e4

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

generator/integration-tests/part-partof/pubspec.yaml

+12-12
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@ environment:
44
sdk: '>=2.14.0 <4.0.0'
55

66
dependencies:
7-
objectbox:
8-
json_annotation: '^4.3.0'
9-
freezed_annotation:
7+
objectbox: any # override below to use local package
8+
json_annotation: '^4.6.0'
9+
freezed_annotation: '^2.1.0'
1010

1111
dev_dependencies:
12-
json_serializable:
13-
freezed:
14-
objectbox_generator:
15-
test:
16-
build_runner:
17-
build_test:
18-
io:
19-
path:
12+
json_serializable: '^6.3.1'
13+
freezed: '^2.0.4' # 3.0.4 requires Dart 3.6
14+
objectbox_generator: any # override below to use local package
15+
test: '^1.21.4'
16+
build_runner: '^2.3.3'
17+
build_test: '^2.1.3'
18+
io: '^1.0.4'
19+
path: '^1.8.3'
2020

2121
dependency_overrides:
2222
objectbox:
2323
path: ../../../objectbox
2424
objectbox_generator:
25-
path: ../../
25+
path: ../../

0 commit comments

Comments
 (0)