gperdomor / nx-tools

Nx Workspaces builders and tools
MIT License
358 stars 56 forks source link

nx container appName fails #1132

Open ktourvas opened 1 month ago

ktourvas commented 1 month ago

Hi, I am facing and issue when trying to run nx container appName command. It fails after the build process with and error

NX fatal: No such remote 'origin' Error: fatal: No such remote 'origin' at /(localpath)/nodemodules/.pnpm/@nx-tools+ci-context@6.0.1@nx+devkit@19.8.2_tslib@2.6.2/node_modules/@nx-tools/ci-context/src/lib/utils/git.js:107:27

Any ideas?

gperdomor commented 1 month ago

@ktourvas , Hi buddy...

Seems like you are trying to use metadata, which will be getted using a CI Runner context (GitLab Runner, GitHub Actions) or from a Git context... In you case is using the second, at some point of the flow the command git remote remote get-url origin it's executed but that remote not exists in your repo