turbo: ignore flag doesn't work
What version of Turborepo are you using?
1.0.23
What package manager are you using / does the bug impact?
Yarn v1
What operating system are you using?
Mac
Describe the Bug
turbo run build --ignore='package/path' doesn’t ignore build for package/path
Expected Behavior
turbo run build --ignore='package/path' run build for all packages except package/path
To Reproduce
ignore some package and run build
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 29
- Comments: 22 (2 by maintainers)
thanks, everything works like a charm with the
--filteroptionFor the time being it looks like this has been fixed in https://github.com/vercel/turborepo/pull/696
I think the
--filtersyntax will fix this properly but for now it’s possible to use--scopeto achieve the desired exclude behaviour.From the release notes:
Still having this issue as well, nothing I’ve tried has successfully been able to ignore individual
@org/pkgtype packages.For example, we have a bunch of
@next-auth/*-adaptertype packages in our/packagesdirectory. I’m trying to run tests like so,turbo run test --scope=@next-auth/*-adapter --ignore=@next-auth/pouchdb-adapter. The goal being, to run all adapters except the pouchdb one. Unfortunately, it will include the pouchdb adapter as well.Like the the first replier, I’ve tried it with the path name, package.json
namefield, with and without glob stars prefixed and suffixed, etc. None of them did the trick 🤷Currently tried it with:
turbo@1.1.2node@14.17.1yarn@1.22.16I posted this originally: https://github.com/vercel/turborepo/issues/398
Still having issues ignoring packages in my build with 1.1.5 unfornunately.
I’m having same issue, ignore does not seem to work.
Using this to negate the scope
Should ignore work without the
--no-depsflag? I did try with it and it is still not working.@morriq Is that not zsh related? try with single quotes