Coder Social home page Coder Social logo

Comments (9)

FredrikLiindgren avatar FredrikLiindgren commented on September 27, 2024 1

Hey @EyalDelarea,

You are correct in that I've not set installCommand in frogbot-config.yml.
However I've set the GitLab CI/CD variable JF_INSTALL_DEPS_CMD: npm i which I thought would be enough but I might be wrong.
I've done as much config as possible via GitLab CI/CD variables but added the frogbot-config.yml the frogbot commands were not working without it. Might be missing some other mandatory config in there.

My full frogbot-config.yml:

- params:
    git:
      repoName: demo-app
      branches:
        - main

Nice to hear about the about not needing to set installCommand!

from frogbot.

EyalDelarea avatar EyalDelarea commented on September 27, 2024 1

For a quick fix you could add the following line to your config file:

  - params:
        git:
          repoName: demo-app
          branches:
            - main
        scan:
          projects:
            - installCommand: "npm i"

Or wait for the release.
Either way waiting to hear how it worked out for you !

from frogbot.

EyalDelarea avatar EyalDelarea commented on September 27, 2024 1

Hey @FredrikLiindgren , that's great to hear!

We will definitely update the docs so it won't be missleading :)

Thank you for your feedback!

from frogbot.

FredrikLiindgren avatar FredrikLiindgren commented on September 27, 2024

Hi @eyalbe4 - Any reason for instantly closing this? I'd be happy to provide further details if necessary.

Kind Regards,
Fredrik

from frogbot.

sverdlov93 avatar sverdlov93 commented on September 27, 2024

It was mistakenly closed @FredrikLiindgren
We are looking into it and will let you know very soon.

from frogbot.

FredrikLiindgren avatar FredrikLiindgren commented on September 27, 2024

@sverdlov93 alright, thanks for taking a look!

from frogbot.

EyalDelarea avatar EyalDelarea commented on September 27, 2024

Hey @FredrikLiindgren,

Thank you for using Frogbot!

The cause of the the missing node_modules folder could be because the installCommand inside
your frogbot-config.yml (line 30) file is not set.
Could you provide us with your configuration ?

And i'm just about to release a new version of Frogbot which will not require to set the installCommand for npm packages anymore, so hope you won't encounter this problem in the future.

from frogbot.

FredrikLiindgren avatar FredrikLiindgren commented on September 27, 2024

Hi that worked great,

However this makes me think the docs about that is quite missleading as this

    # [Mandatory if the two conditions below are met]
    # 1. The project uses npm, yarn 2, NuGet or .NET to download its dependencies
    # 2. The `installCommand` variable isn't set in your frogbot-config.yml file.
    #
    # The command that installs the project dependencies (e.g "npm i", "nuget restore" or "dotnet restore")
    JF_INSTALL_DEPS_CMD: ""

Makes me think I do not have to define the installCommand in the frogbot-config.yml file if I've defined JF_INSTALL_DEPS_CMD :)

from frogbot.

FredrikLiindgren avatar FredrikLiindgren commented on September 27, 2024

Great @EyalDelarea - Thanks for your helpful & timely responses!

from frogbot.

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.