File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -245,7 +245,7 @@ class Package {
245
245
return Ignore .listFiles (
246
246
beneath: beneath,
247
247
listDir: (dir) {
248
- var contents = Directory (resolve (dir)).listSync (recursive : true );
248
+ var contents = Directory (resolve (dir)).listSync (followLinks : false );
249
249
if (! recursive) {
250
250
contents = contents.where ((entity) => entity is ! Directory ).toList ();
251
251
}
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ class GitignoreValidator extends Validator {
45
45
final unignoredByGitignore = Ignore .listFiles (
46
46
beneath: beneath,
47
47
listDir: (dir) {
48
- var contents = Directory (resolve (dir)).listSync ();
48
+ var contents = Directory (resolve (dir)).listSync (followLinks : false );
49
49
return contents.map ((entity) =>
50
50
p.posix.joinAll (p.split (p.relative (entity.path, from: root))));
51
51
},
Original file line number Diff line number Diff line change @@ -118,7 +118,8 @@ void main() {
118
118
(e) => e.message,
119
119
'message' ,
120
120
contains (
121
- 'Pub does not support publishing packages with non-resolving symlink:' ),
121
+ 'Pub does not support publishing packages with directory symlinks' ,
122
+ ),
122
123
),
123
124
),
124
125
);
You can’t perform that action at this time.
0 commit comments