Library
all
Are you reporting Accessibility issue?
no
Reproduction
we have defined ignore globs within lage.config.js
- change anything in file matching one of those globs, lets say add comment to
.github/CODEOWNERS
- create untracked file in repo root ->
touch foo.txt
- stage codeowners change:
git add .github/CODEOWNERS. (dont stage untracked foo.txt ! )
- run
yarn lage info --since master
- this will output all monorepo packages 🚨🚨🚨
Bug Description
Actual Behavior
ignore doesn't work properly if there are untracked files present in repo root
Expected Behavior
ignore works as expected if untracked files are present. if there are no candidates IMO returning all workspace packages as affected is wrong/confusing.
Why is this happening
lage uses workspace-tools under the hood which has hardcoded true flag to return all packages if no candidate package is being returned. This bug was introduced in this PR https://github.com/microsoft/workspace-tools/pull/105/files#diff-45e9ef10fc7a91e55ef79733fe0ebb8939b7b913f7624e43ff250f913596964fR74
Requested priority
Normal
Products/sites affected
whole monorepo
Are you willing to submit a PR to fix?
yes
Validations
Library
all
Are you reporting Accessibility issue?
no
Reproduction
we have defined
ignoreglobs withinlage.config.js.github/CODEOWNERStouch foo.txtgit add .github/CODEOWNERS. (dont stage untracked foo.txt ! )yarn lage info --since masterBug Description
Actual Behavior
ignoredoesn't work properly if there are untracked files present in repo rootExpected Behavior
ignoreworks as expected if untracked files are present. if there are no candidates IMO returning all workspace packages as affected is wrong/confusing.Why is this happening
lage uses
workspace-toolsunder the hood which has hardcodedtrueflag to return all packages if no candidate package is being returned. This bug was introduced in this PR https://github.com/microsoft/workspace-tools/pull/105/files#diff-45e9ef10fc7a91e55ef79733fe0ebb8939b7b913f7624e43ff250f913596964fR74Requested priority
Normal
Products/sites affected
whole monorepo
Are you willing to submit a PR to fix?
yes
Validations