@@ -178,24 +178,24 @@ class TestProject {
178178 // package.
179179 final packageDirectory = p.basename (absolutePackageDirectory);
180180 if (copiedPackageDirectories.contains (packageDirectory)) return ;
181- final currentPath = absolutePath (pathFromFixtures: packageDirectory);
182181 final newPath = p.join (tempDirectory.absolute.path, packageDirectory);
183182 Directory (newPath).createSync ();
184- copyPathSync (currentPath , newPath);
183+ copyPathSync (absolutePackageDirectory , newPath);
185184 copiedPackageDirectories.add (packageDirectory);
186185 final pubspec = Pubspec .parse (
187- File (p.join (currentPath , 'pubspec.yaml' )).readAsStringSync (),
186+ File (p.join (absolutePackageDirectory , 'pubspec.yaml' )).readAsStringSync (),
188187 );
189188 for (final dependency in pubspec.dependencies.values) {
190189 if (dependency is PathDependency ) {
191190 final dependencyDirectory = Directory (
192- p.normalize (p.join (currentPath , dependency.path)),
191+ p.normalize (p.join (absolutePackageDirectory , dependency.path)),
193192 );
194193 // It may be okay to do some more complicated copying here for path
195194 // dependencies that aren't immediately under `fixtures`, but for now,
196195 // only support those that are.
197196 assert (
198- dependencyDirectory.parent.path == Directory (currentPath).parent.path,
197+ dependencyDirectory.parent.path ==
198+ Directory (absolutePackageDirectory).parent.path,
199199 'Path dependency of $packageDirectory : '
200200 '${dependencyDirectory .path } is not an immediate directory in '
201201 '`fixtures`.' ,
0 commit comments