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