Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add flag to skip "Unclean working tree" check #654

Open
brett-james-rocketlab opened this issue Jul 11, 2022 · 1 comment
Open

Add flag to skip "Unclean working tree" check #654

brett-james-rocketlab opened this issue Jul 11, 2022 · 1 comment

Comments

@brett-james-rocketlab
Copy link

brett-james-rocketlab commented Jul 11, 2022

I'm testing out np in a seperate branch, and trying to run it with yolo and no-cleanup, which should skip the check local working tree step. However, it's not and still checks. I get the -> Unclean working tree. Commit or stash changes first.

I'd like to be able to skip the check local working tree check, and get past the → Unclean working tree. Commit or stash changes first. message.

  1. add some local files like env.development which are okay to have on your local install. (to normally fail the unclean environment check)
  2. yarn np --no-cleanup --yolo --no-publish --any-branch --no-git-checks --no-cleanup The important part being --yolo in that test
  3. See the error when bumping

Expected behavior

To be able to get past the Check local working tree step

Environment

np - 7.6.2
Node.js - v16.13.2
Git - 2.30.1
OS - Mac OS 12.4
Git - 1.22.19

@fregante fregante changed the title Unable to skip check local working tree with --yolo --no-cleanup Add flag to skip "Unclean working tree" check Feb 3, 2023
@michakfromparis
Copy link

I think it could even be part of --yolo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants