Skip to content

Parent npm run all fails #3772

@Andreas02-dev

Description

@Andreas02-dev

nx affected fails since we have the 'master' branch instead of the 'main' branch. We should specify the base branch in the command to resolve this or rename the 'master' branch to 'main'.

Output for `npm run all` npm run all

root@0.0.6 all
nx affected --target=lint:prettier,lint,build,test

NX Affected criteria defaulted to --base=main --head=HEAD

fatal: ambiguous argument 'main': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git [...] -- [...]'

NX Command failed: git diff --name-only --no-renames --relative "main" "HEAD"

fatal: ambiguous argument 'main': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git [...] -- [...]'

Pass --verbose to see the stacktrace.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions