Open FrozenPandaz opened 11 months ago
UPDATE:
The .env
file is hashed when added to both .nxignore
and sharedGlobals
. (nx@17.1.3
)
.nxignore
!.env*
nx.json
{
"namedInputs": {
"default": ["{projectRoot}/**/*", "sharedGlobals"],
"sharedGlobals": ["{workspaceRoot}/.env*"]
}
}
Hello, thanks for this amazing project.
I'm trying to cache my task but I found changing my .env
file (included in .gitignore
) would cause a false positive even if the file is added in .nxignore
and inputs
.
The .env
file is not even in file-map.json
unless unignore it in .gitignore
, so I guess if it's the same problem with this issue.
Current Behavior
For the following ignore files:
.gitignore
.nxignore
dir/subdir
does not actually get "unignored" for nx to hash.Expected Behavior
For the following ignore files:
.gitignore
.nxignore
dir/subdir
does get "unignored" for nx to hash.GitHub Repo
https://github.com/nrwl/nx-examples
Steps to Reproduce
.nxignore
with the following:"{workspaceRoot}/.angular/cache/16.2.0/**/*"
to the default inputsnx build cart --graph
and look at the inputsNx Report
Failure Logs
Package Manager Version
yarn 1.22.19
Operating System
Additional Information
This is due to an issue in the
ignores
crate: https://github.com/BurntSushi/ripgrep/issues/1050What does work is: For the following ignore files:
.gitignore
.nxignore
Original issue: https://github.com/nrwl/nx/issues/6821