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

Dependabot not working with repo that does not persist package-lock.json file #9492

Open
1 task done
sfkaos opened this issue Apr 12, 2024 · 0 comments
Open
1 task done
Labels
L: javascript T: bug 🐞 Something isn't working

Comments

@sfkaos
Copy link

sfkaos commented Apr 12, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Package ecosystem

npm

Package manager version

10.4.0

Language version

18.17.0

Manifest location and content before the Dependabot update

/package.json

dependabot.yml content

version: 2
updates:

  • package-ecosystem: "npm"
    directory: "/"
    schedule:
    interval: "weekly"
    target-branch: "develop"
    labels:
    • "security vulnerability"

Updated dependency

No response

What you expected to see, versus what you actually saw

We have decided not to persist the package-lock.json as part of our repo (only package.json). I was hoping Dependabot would only suggest package.json changes to support any security vulnerability fixes but continue to get the following error:

Dependabot can't parse your package-lock.json
Dependabot failed to update your dependencies because there was an error parsing the package-lock.json found at /package-lock.json.

Dependabot encountered the following error:

/package-lock.json not parseable

Native package manager behavior

No response

Images of the diff or a link to the PR, issue, or logs

No response

Smallest manifest that reproduces the issue

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L: javascript T: bug 🐞 Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant