-
-
Notifications
You must be signed in to change notification settings - Fork 66
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
PNPM support? #684
Comments
@AndrewCraswell it is easier for me to work on this if you can provide a repro. I have zero experience with pnpm |
In my case, even though I use the most recent version ( Parsing dependencies information
/home/dependabot/dependabot-updater/vendor/ruby/3.1.0/bundler/gems/dependabot-core-8b4e7c7c59ff/npm_and_yarn/lib/dependabot/npm_and_yarn/file_parser/pnpm_lock.rb:23:in `rescue in block in parsed': /pnpm-lock.yaml not parseable (Dependabot::DependencyFileNotParseable) The project is a workspace with a single lockfile. Edit: Edit2: Edit3: Edit4: Another issue I found is that - dependency-name: "*"
update-types: ["version-update:semver-major"] PRs are opened that increase a package's version by major steps. This was previously working well with separate npm packages inside my project. |
My apologies, I can try to put together a repro but it would need to be over a weekend. Assembling a minimal reproduction would be a good first step, and I need to do this anyways to provide an example for how to implement Dependabot in our org. |
Yes, this is the way. 🙂 |
Hi @mburumaxwell! Here's a very minimal example: https://dev.azure.com/hajnalbendeguz/pnpm-dependabot. Unfortunately, it hasn't received access to use Azure runner agents just yet, so the pipeline can't start, but a request doesn't take more than a few days to fulfill as I read. |
Okay, I've put together a minimal reproduction and dropped the same repo in Github and in DevOps so we can verify it works in Github. Interestingly, in the Azure DevOps repro the pipeline has started failing with parse errors. Two weeks back the pipeline would succeed but the PRs that would open would only include changes to the |
I was able to look at our private repo build history and see what the output was when it was successfully creating the PRs (albeit without the changes to lockfile). Interestingly it seems that the lockfile was not being detected. Only the This contrasts with the minimal reproduction that I put together today, where the lockfile is found but then the parse error is encountered. |
HI @AndrewCraswell I should get to this in the course of the week if you will not have managed to get a solution. |
This unfortunately is outside of my comfort zone to provide a PR in Ruby. But in case it helps, I've put up a small bounty on the work item. |
Just an update, I have managed to repro the issue. Hopefully, it does not take too long to resolve. |
In the latest version, this has been addressed. |
Just verified it's working! I think it's safe to close the issue :) |
Thanks a lot! It does appear to be working, but sadly I bumped into errors which didn't happen while I was still using npm.
/home/dependabot/dependabot-updater/vendor/ruby/3.1.0/gems/dependabot-npm_and_yarn-0.224.0/lib/dependabot/npm_and_yarn/requirement.rb:26:in `parse': Illformed requirement ["workspace:*"] (Gem::Requirement::BadRequirementError)` {
"dependencies": {
"@private/package": "workspace:*",
}
} This latter error even happens when package updates are explicitly ignored by |
@AndrewCraswell great! I will proceed @hbendev ,
|
@AndrewCraswell I recently realized bountysource has issues, starting to look like a Ponzi scheme. No responses from their support and it appears that's been going on for a while. I recommend that you seek a refund, via PayPal. GH sponsors is the better alternative. |
Ahh that's too bad. It used to be great Pre-covid. Sounds like things have gone downhill. I will look into GH Sponsors, unless you would prefer something more direct. Feel free to shoot me an email |
@hbendev Your second issue where you get the error message @AndrewCraswell , GH sponsors is okay and I believe more transparent. |
Dependabot has released an update to support
pnpm
package manager, and the associated feature request was closed as completed. The docs have also been updated to show the new package manager support matrix.I've been trying to verify the changes in our Azure Devops repo, where we use pnpm
v8.6.5
and Dependabot via this extension. I'm seeing the package.json file is having the proper version bump, but thepnpm-lock.yaml
(using version6.0
) is not being updated. This lead me to wonder if maybe the Dependabot Azure Devops extension is not yet using the latest version of Dependabot?If it is, do you have any ideas about increasing logging to see why the lockfile is not being updated and included in the PRs that are opened?
The text was updated successfully, but these errors were encountered: