Post

@juri.dev I remember the nx docs recommend setting `fetch-depth: 0` to make nx-affected work; For us, on a relatively big monorepo, this took 1m40s on CI because it fetches all history😅. We now found out that setting `filter: tree:0` gets that down to 28s while nx affected still works 🤯

4 reposts40 likes

Oh that's brilliant, thanks for posting this! This should definitely be in the docs. I bumped up against this problem at my last job with a huge repo history. I hacked together a solution that was much more brittle and lost a few days worth of time going back to fix it.