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

nx-ignore doesn't seem to work on netlify with pnpm #360

Open
jaredh159 opened this issue Dec 8, 2023 · 0 comments
Open

nx-ignore doesn't seem to work on netlify with pnpm #360

jaredh159 opened this issue Dec 8, 2023 · 0 comments

Comments

@jaredh159
Copy link

trying to use nx-ignore on netlify with an ignore command, but my monorepo is using pnpm, and at the time that netlify runs the ignore script, it can't seem to find nx and errors out:

[...]
12:51:49 PM: ≫ Creating temp folder to install Nx: /tmp/.nx-ignore
12:51:49 PM: /bin/sh: 1: pnpm: not found
12:51:49 PM: ≫ Cannot find installed Nx
[...]
full build log
  12:51:29 PM: build-image version: 3ffff9df3d5419545acc1b673a54de348174406d (focal)
  12:51:29 PM: buildbot version: 06bd328e5eb3b6956f9c6602486ecccce8b861a0
  12:51:29 PM: Fetching cached dependencies
  12:51:29 PM: Starting to download cache of 768.9MB
  12:51:36 PM: Finished downloading cache in 7.454s
  12:51:36 PM: Starting to extract cache
  12:51:46 PM: Finished extracting cache in 9.277s
  12:51:46 PM: Finished fetching cache in 16.828s
  12:51:46 PM: Starting to prepare the repo for build
  12:51:46 PM: Preparing Git Reference pull/111/head
  12:51:47 PM: Custom publish path detected. Proceeding with the specified path: "apps/jones/dist"
  12:51:47 PM: Custom functions path detected. Proceeding with the specified path: "apps/jones/src/functions"
  12:51:47 PM: Custom ignore command detected. Proceeding with the specified command: "npx nx-ignore@17.0.0 --root="$(dirname $(dirname $PWD))" --verbose @friends-library/jones"
  12:51:47 PM: manpath: warning: $PATH not set
  12:51:48 PM: npm WARN exec The following package was not found and will be installed: nx-ignore@17.0.0
  12:51:49 PM: ≫ Using Nx to determine if this project (@friends-library/jones) is affected by the commit...
  12:51:49 PM: ≫ Running from /opt/buildhome/.npm/_npx/f643f2f0728b7be0/node_modules/nx-ignore/src
  12:51:49 PM: ≫ Workspace root is /opt/build/repo
  12:51:49 PM: ≫ Creating temp folder to install Nx: /tmp/.nx-ignore
  12:51:49 PM: /bin/sh: 1: pnpm: not found
  12:51:49 PM: ≫ Cannot find installed Nx
  12:51:49 PM: Starting to install dependencies
  12:51:50 PM: Python version set to 3.8
  12:51:50 PM: Attempting Ruby version 2.7.2, read from environment
  12:51:50 PM: Using Ruby version 2.7.2
  12:51:51 PM: Started restoring cached go cache
  12:51:51 PM: Finished restoring cached go cache
  12:51:52 PM: go version go1.19.13 linux/amd64
  12:51:52 PM: Using PHP version 8.0
  12:51:53 PM: Started restoring cached Node.js version
  12:51:54 PM: Finished restoring cached Node.js version
  12:51:54 PM: v18.13.0 is already installed.
  12:51:55 PM: Now using node v18.13.0 (npm v8.19.3)
  12:51:55 PM: Enabling Node.js Corepack
  12:51:55 PM: Started restoring cached build plugins
  12:51:55 PM: Finished restoring cached build plugins
  12:51:55 PM: Started restoring cached corepack dependencies
  12:51:55 PM: Finished restoring cached corepack dependencies
  12:51:55 PM: pnpm workspaces detected
  12:51:55 PM: Started restoring workspace libs-ts/adoc-lint node modules
  12:51:55 PM: Finished restoring workspace libs-ts/adoc-lint node modules
  12:51:55 PM: Started restoring workspace libs-ts/adoc-utils node modules
  12:51:55 PM: Finished restoring workspace libs-ts/adoc-utils node modules
  12:51:55 PM: Started restoring workspace libs-ts/cloud node modules
  12:51:55 PM: Finished restoring workspace libs-ts/cloud node modules
  12:51:55 PM: Started restoring workspace libs-ts/cover-component node modules
  12:51:55 PM: Finished restoring workspace libs-ts/cover-component node modules
  12:51:55 PM: Started restoring workspace libs-ts/doc-artifacts node modules
  12:51:55 PM: Finished restoring workspace libs-ts/doc-artifacts node modules
  12:51:55 PM: Started restoring workspace libs-ts/doc-css node modules
  12:51:55 PM: Finished restoring workspace libs-ts/doc-css node modules
  12:51:55 PM: Started restoring workspace libs-ts/doc-manifests node modules
  12:51:55 PM: Finished restoring workspace libs-ts/doc-manifests node modules
  12:51:55 PM: Started restoring workspace libs-ts/dpc-fs node modules
  12:51:55 PM: Finished restoring workspace libs-ts/dpc-fs node modules
  12:51:55 PM: Started restoring workspace libs-ts/env node modules
  12:51:55 PM: Finished restoring workspace libs-ts/env node modules
  12:51:55 PM: Started restoring workspace libs-ts/evaluator node modules
  12:51:55 PM: Finished restoring workspace libs-ts/evaluator node modules
  12:51:55 PM: Started restoring workspace libs-ts/friend-repos node modules
  12:51:55 PM: Finished restoring workspace libs-ts/friend-repos node modules
  12:51:55 PM: Started restoring workspace libs-ts/locale node modules
  12:51:55 PM: Finished restoring workspace libs-ts/locale node modules
  12:51:55 PM: Started restoring workspace libs-ts/lulu node modules
  12:51:55 PM: Finished restoring workspace libs-ts/lulu node modules
  12:51:55 PM: Started restoring workspace libs-ts/pairql node modules
  12:51:55 PM: Finished restoring workspace libs-ts/pairql node modules
  12:51:55 PM: Started restoring workspace libs-ts/parser node modules
  12:51:55 PM: Finished restoring workspace libs-ts/parser node modules
  12:51:55 PM: Started restoring workspace libs-ts/slack node modules
  12:51:55 PM: Finished restoring workspace libs-ts/slack node modules
  12:51:55 PM: Started restoring workspace libs-ts/theme node modules
  12:51:55 PM: Finished restoring workspace libs-ts/theme node modules
  12:51:55 PM: Started restoring workspace apps/admin node modules
  12:51:55 PM: Finished restoring workspace apps/admin node modules
  12:51:55 PM: Started restoring workspace apps/api node modules
  12:51:55 PM: Finished restoring workspace apps/api node modules
  12:51:55 PM: Started restoring workspace apps/cli node modules
  12:51:55 PM: Finished restoring workspace apps/cli node modules
  12:51:55 PM: Started restoring workspace apps/cover-web-app node modules
  12:51:55 PM: Finished restoring workspace apps/cover-web-app node modules
  12:51:55 PM: Started restoring workspace apps/evans node modules
  12:51:55 PM: Finished restoring workspace apps/evans node modules
  12:51:55 PM: Started restoring workspace apps/fell node modules
  12:51:55 PM: Finished restoring workspace apps/fell node modules
  12:51:55 PM: Started restoring workspace apps/jones node modules
  12:51:55 PM: Finished restoring workspace apps/jones node modules
  12:51:55 PM: Started restoring workspace apps/native node modules
  12:51:55 PM: Finished restoring workspace apps/native node modules
  12:51:55 PM: Started restoring workspace apps/poster node modules
  12:51:55 PM: Finished restoring workspace apps/poster node modules
  12:51:55 PM: Started restoring workspace apps/storybook node modules
  12:51:55 PM: Finished restoring workspace apps/storybook node modules
  12:51:55 PM: Started restoring workspace apps/styleguide node modules
  12:51:55 PM: Finished restoring workspace apps/styleguide node modules
  12:51:55 PM: Started restoring workspace actions/ts-pack node modules
  12:51:55 PM: Finished restoring workspace actions/ts-pack node modules
  12:51:55 PM: Started restoring workspace root node modules
  12:51:55 PM: Finished restoring workspace root node modules
  12:51:56 PM: Installing npm packages using pnpm version 8.11.0
  12:51:56 PM: Scope: all 32 workspace projects
  12:51:57 PM: ../..                                    |  +31 +++
  12:51:57 PM:  WARN  Failed to create bin at /opt/build/repo/node_modules/.pnpm/node_modules/.bin/tao. ENOENT: no such file or directory, open "/opt/build/repo/node_modules/.pnpm/node_modules/@nrwl/tao/index"
  12:51:57 PM:  WARN  Failed to create bin at /opt/build/repo/node_modules/.pnpm/nx@15.8.8/node_modules/nx/node_modules/.bin/tao. ENOENT: no such file or directory, open "/opt/build/repo/node_modules/.pnpm/nx@15.8.8/node_modules/@nrwl/tao/index"
  12:51:58 PM: ../../libs-ts/theme postinstall$ pnpm compile
  12:51:58 PM: ../../libs-ts/theme postinstall: > @friends-library/theme@1.2.0 compile /opt/build/repo/libs-ts/theme
  12:51:58 PM: ../../libs-ts/theme postinstall: > tsc --build
  12:51:59 PM: ../../libs-ts/theme postinstall: Done
  12:51:59 PM: Done in 3.6s
  12:51:59 PM: npm packages installed using pnpm
  12:52:00 PM: Successfully installed dependencies
  12:52:00 PM: Starting build script
  12:52:01 PM: Detected 1 framework(s)
  12:52:01 PM: "parcel" at version "2.8.3"
  12:52:01 PM: Section completed: initializing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant