We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a831709 commit 8df07e3Copy full SHA for 8df07e3
src/lock.rs
@@ -398,11 +398,15 @@ impl ExternalPlugin {
398
.build()
399
.with_context(s!("failed to parse glob patterns: {}", debug()))?
400
{
401
- files.push(
+ let entry = entry.with_context(s!("failed to match patterns: {}", debug()))?;
402
+ if entry.metadata()?.file_type().is_symlink() {
403
entry
- .with_context(s!("failed to read path matched by patterns: {}", debug()))?
404
- .into_path(),
405
- );
+ .path()
+ .metadata()
406
+ .with_context(s!("failed to read symlink `{}`", entry.path().display()))
407
+ .with_context(s!("failed to match patterns: {}", debug()))?;
408
+ }
409
+ files.push(entry.into_path());
410
matched = true;
411
}
412
Ok(matched)
0 commit comments