dashy icon indicating copy to clipboard operation
dashy copied to clipboard

[BUG] yarn.lock update for heroku (on Netlify)

Open hvisage opened this issue 1 year ago • 2 comments

Environment

Cloud Service (Static)

System

Gitlab, netlify

Version

3.0.1

Describe the problem

site is working, but I see these in GitLab's build pipeline

-----> Build failed
 !     Outdated Yarn lockfile
       Your application contains a Yarn lockfile (yarn.lock) which does not
       match the dependencies in package.json. This can happen if you use npm
       to install or update a dependency instead of Yarn.
       Please run the following command in your application directory and check
       in the new yarn.lock file:
       $ yarn install
       $ git add yarn.lock
       $ git commit -m "Updated Yarn lockfile"
       $ git push heroku main
    
       https://help.heroku.com/TXYS53YJ
Cleaning up project directory and file based variables
00:01
ERROR: Job failed: exit code 1

Additional info

[0KRunning with gitlab-runner 17.0.0~pre.88.g761ae5dd (761ae5dd)[0;m [0K on green-6.saas-linux-small-amd64.runners-manager.gitlab.com/default YKxHNyexq, system ID: s_a201ab37b78a[0;m section_start:1717033232:prepare_executor [0K[0K[36;1mPreparing the "docker+machine" executor[0;m[0;m [0KUsing Docker executor with image gliderlabs/herokuish:latest ...[0;m [0KStarting service postgres:9.6.16 ...[0;m [0KPulling docker image postgres:9.6.16 ...[0;m [0KUsing docker image sha256:cb2889ab0680ba518e0dc1bb5a09cbe23f1e5908d9e484daea3d34f5e092ec17 for postgres:9.6.16 with digest postgres@sha256:d6a6badb2b5b22de5e135490a217522cecc2ae90fe35b33290615827569310a1 ...[0;m [0KWaiting for services to be up and running (timeout 30 seconds)...[0;m [0KPulling docker image gliderlabs/herokuish:latest ...[0;m [0KUsing docker image sha256:5b8865c0c1efcce4d477f5e4de2ce882c1185c8e48ebc76d26f194d8bf991a8e for gliderlabs/herokuish:latest with digest gliderlabs/herokuish@sha256:acb09f8b2963dfe5e6134b552f54170d0e5ca94b190d454a7429b3bac1a7f4d6 ...[0;m section_end:1717033274:prepare_executor [0Ksection_start:1717033274:prepare_script [0K[0K[36;1mPreparing environment[0;m[0;m Running on runner-ykxhnyexq-project-58327691-concurrent-0 via runner-ykxhnyexq-s-l-s-amd64-1717033193-14d0f5bc... section_end:1717033278:prepare_script [0Ksection_start:1717033278:get_sources [0K[0K[36;1mGetting source from Git repository[0;m[0;m [32;1mFetching changes with git depth set to 20...[0;m Initialized empty Git repository in /builds/lnx-solutions/dashy-dashboard-lnx/.git/ [32;1mCreated fresh repository.[0;m [32;1mChecking out f206847d as detached HEAD (ref is master)...[0;m

[32;1mSkipping Git submodules setup[0;m [32;1m$ git remote set-url origin "${CI_REPOSITORY_URL}"[0;m section_end:1717033282:get_sources [0Ksection_start:1717033282:step_script [0K[0K[36;1mExecuting "step_script" stage of the job script[0;m[0;m [0KUsing docker image sha256:5b8865c0c1efcce4d477f5e4de2ce882c1185c8e48ebc76d26f194d8bf991a8e for gliderlabs/herokuish:latest with digest gliderlabs/herokuish@sha256:acb09f8b2963dfe5e6134b552f54170d0e5ca94b190d454a7429b3bac1a7f4d6 ...[0;m [32;1m$ if [ -z ${KUBERNETES_PORT+x} ]; then # collapsed multi-line command[0;m [32;1m$ export DATABASE_URL="postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DB_HOST}:5432/${POSTGRES_DB}"[0;m [32;1m$ cp -R . /tmp/app[0;m [32;1m$ /bin/herokuish buildpack test[0;m [1G-----> Node.js app detected

-----> Creating runtime environment

   NPM_CONFIG_PRODUCTION=false
   NPM_CONFIG_LOGLEVEL=error
   USE_YARN_CACHE=true
   NODE_VERBOSE=false
   NODE_ENV=test
   NODE_MODULES_CACHE=true

-----> Installing binaries engines.node (package.json): >=16.0.0 <21.6.2 engines.npm (package.json): unspecified (use default) engines.yarn (package.json): unspecified (use default)

   Resolving node version >=16.0.0 <21.6.2...
   Downloading and installing node 21.6.1...
   Using default npm version: 10.2.4
   Resolving yarn version 1.22.x...
   Downloading and installing yarn (1.22.22)
   Installed yarn 1.22.22

-----> Installing dependencies Installing node modules (yarn.lock) yarn install v1.22.22 [1/4] Resolving packages... error Your lockfile needs to be updated, but yarn was run with --frozen-lockfile. info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

-----> Build failed

! Outdated Yarn lockfile

   Your application contains a Yarn lockfile (yarn.lock) which does not
   match the dependencies in package.json. This can happen if you use npm
   to install or update a dependency instead of Yarn.

   Please run the following command in your application directory and check
   in the new yarn.lock file:

   $ yarn install
   $ git add yarn.lock
   $ git commit -m "Updated Yarn lockfile"
   $ git push heroku main

   https://help.heroku.com/TXYS53YJ

section_end:1717033297:step_script [0Ksection_start:1717033297:cleanup_file_variables [0K[0K[36;1mCleaning up project directory and file based variables[0;m[0;m section_end:1717033297:cleanup_file_variables [0K[31;1mERROR: Job failed: exit code 1 [0;m

Please tick the boxes

hvisage avatar May 30 '24 06:05 hvisage

This issue has gone 3 months without an update. To keep the ticket open, please indicate that it is still relevant in a comment below. Otherwise it will be closed in 5 working days.

liss-bot avatar Aug 29 '25 01:08 liss-bot

This issue was automatically closed because it has been stalled for over 1 year with no activity.

liss-bot avatar Sep 04 '25 01:09 liss-bot