Open Graian opened 1 year ago
When I modified the above-mentioned line of code to the following, I found that it fixed the problem. I don't know what side-effects this fix has on the overall behaviour of sv-parser
.
if entry.file_type().is_file()
->if entry.path().is_file()
@DaveMcEwan , Thanks for your comment. I have no permission to PR to dalance/sv-parser
repository. and, here are my answers for your questions.
What are you using Bazel for? Instead of Cargo? Apologies if this is a silly question!
Cargo.toml
, and bazel leverages Cargo.toml
and the Cargo.lock
file.How can I (or others) reproduce your issue?
Is Bazel compatibility important enough to add CI checks?
@DaveMcEwan , I've forked this repository and create a merge request!
@Graian Would you mind closing this issue as it looks like your fix is merged.
While building rust source with the
rules_rust
(rust_library
orrust_binary
) build rule in the bazel build system, I encountered a bug. Bazel creates working directories using symlinks to files, butsv-parser
checks if it's a file and ignores it if it's a symlink. so, requires an update to allowsv-parser
to handle symlinks.This line cause this issue.