<#18686 Pants ignores fully-specified `sources` va...
# github-notifications
c
#18686 Pants ignores fully-specified `sources` values beginning with `.` unless you add a `!` line to your `pants_ignore` Issue created by chrisjrn … and that is confusing. I had a
BUILD
file:
Copy code
files(
  sources=[…, ".cargo/config", …],
)
which resulted in the error:
Copy code
native_engine.IntrinsicError: Unmatched glob from src/rust/engine:rust_sources's `sources` field: "src/rust/engine/.cargo/config"

Do the file(s) exist? If so, check if the file(s) are in your `.gitignore` or the global `pants_ignore` option, which may result in Pants not being able to see the file(s) even though they exist on disk. Refer to <https://www.pantsbuild.org/v2.17/docs/troubleshooting#pants-cannot-find-a-file-in-your-project>.
.cargo
was not in my
.gitignore
or my `pants_ignore`; this behaviour was not listed in the troubleshooting docs. pantsbuild/pants