GithubHelp home page GithubHelp logo

Comments (11)

MichaelDeBoey avatar MichaelDeBoey commented on April 19, 2024 1

Closed by #102

from indie-stack.

MichaelDeBoey avatar MichaelDeBoey commented on April 19, 2024

Will probably be fixed by #102

from indie-stack.

AsaAyers avatar AsaAyers commented on April 19, 2024

I don't think this fully fixed it 😢 I just created a new project by running npx create-remix --template remix-run/indie-stack and following the readme. npm ci works locally but fails on CI.

image

from indie-stack.

AsaAyers avatar AsaAyers commented on April 19, 2024

This got me past that npm ci error.

index d01b1b0..a45574c 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -100,7 +100,7 @@ jobs:
       - name: 📥 Download deps
         uses: bahmutov/npm-install@v1
         with:
-          useLockFile: false
+          useLockFile: true
 
       - name: 🛠 Setup Database
         run: npx prisma migrate reset --force

from indie-stack.

mcansh avatar mcansh commented on April 19, 2024

ah yep, the first run won't have a lock file until the deps are installed due to #79, so npm ci will fail, personally i think it's fine to have them by default and if someone wants to use a diff package manager, they'll know what to do - especially because we still use npm in the Dockerfile

from indie-stack.

machour avatar machour commented on April 19, 2024

@mcansh Could we add some output to the CI about this to avoid confusing users?

from indie-stack.

mcansh avatar mcansh commented on April 19, 2024

something like? I'm not sure this is better than just having one by default as we still use npm in the Dockerfile

- name: Check for lockfile
  run: |
    FILE=package-lock.json
    if [ ! -f "$FILE" ]; then
      echo "$FILE does not exist. Please run `npm install` before continuing"
      exit 1
    fi

however! just thought about this, we could potentially check for the package manager in github and pass that to Docker for it to know which files to copy and which PM to use 🤔

from indie-stack.

AsaAyers avatar AsaAyers commented on April 19, 2024

from indie-stack.

mcansh avatar mcansh commented on April 19, 2024

I think by explicitly disabling the lock file, it would check out different versions of packages and then that causes "npm ci" to complain about them being out of sync.

something is definitely up, but i don't think that's it as opting out of the lock file uses npm install and not npm ci

https://github.com/bahmutov/npm-install/blob/master/index.js#L112

from indie-stack.

mcansh avatar mcansh commented on April 19, 2024

interesting, i just created a new app and the cypress job passed https://github.com/mcansh/indie-stack-test/runs/6971217149?check_suite_focus=true

from indie-stack.

machour avatar machour commented on April 19, 2024

Closing this issue as no response was provided.
Feel free to re-open it if it's still a problem.

from indie-stack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.