@@ -178,24 +178,24 @@ class TestProject {
178
178
// package.
179
179
final packageDirectory = p.basename (absolutePackageDirectory);
180
180
if (copiedPackageDirectories.contains (packageDirectory)) return ;
181
- final currentPath = absolutePath (pathFromFixtures: packageDirectory);
182
181
final newPath = p.join (tempDirectory.absolute.path, packageDirectory);
183
182
Directory (newPath).createSync ();
184
- copyPathSync (currentPath , newPath);
183
+ copyPathSync (absolutePackageDirectory , newPath);
185
184
copiedPackageDirectories.add (packageDirectory);
186
185
final pubspec = Pubspec .parse (
187
- File (p.join (currentPath , 'pubspec.yaml' )).readAsStringSync (),
186
+ File (p.join (absolutePackageDirectory , 'pubspec.yaml' )).readAsStringSync (),
188
187
);
189
188
for (final dependency in pubspec.dependencies.values) {
190
189
if (dependency is PathDependency ) {
191
190
final dependencyDirectory = Directory (
192
- p.normalize (p.join (currentPath , dependency.path)),
191
+ p.normalize (p.join (absolutePackageDirectory , dependency.path)),
193
192
);
194
193
// It may be okay to do some more complicated copying here for path
195
194
// dependencies that aren't immediately under `fixtures`, but for now,
196
195
// only support those that are.
197
196
assert (
198
- dependencyDirectory.parent.path == Directory (currentPath).parent.path,
197
+ dependencyDirectory.parent.path ==
198
+ Directory (absolutePackageDirectory).parent.path,
199
199
'Path dependency of $packageDirectory : '
200
200
'${dependencyDirectory .path } is not an immediate directory in '
201
201
'`fixtures`.' ,
0 commit comments