-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Try to find pnpm-lock.yaml file upwards on tree structure #10806
base: main
Are you sure you want to change the base?
Conversation
3d6dfee
to
4f598b9
Compare
Having this specific issue with our repos and was surprised to discover this is not actually covered while pnpm is supported. Would be great to have some maintainers attention, since this is mandatory for any monorepo out there and the PR is quite simple and straightforward |
Thanks @Yurickh , @thavaahariharangit will be investigating in this area this week. |
How do you ensure this solution works? , Is there are any example repository to test this scenario? , I mean I could recreate the error, and check that changes that you have provided in the PR fixing the issue? please. Based on the analysis on the ticket. If it is yarn monorepo, dependabot is failing. But I could not test that on the repo they have provided due to the dependencies using private registries. Could you please let me know your thoughts on this. |
That's my question in the PR description exactly :)~ |
So far, I've ensured the fix works by adding a test that breaks on your main, and passes on my branch, but if that's not enough, please I'd be glad to help verify it in any manner you see fit. |
Give me sometime, I will recreate this problem on sample or general repo, and verify both pls
|
Existing Yarn fixes added to the PNPM as well. |
I did some more reading on this issue. As per the documentation. FYR: #6346 (comment) |
Yes, you're right there's only a single |
Thank you for this update, now I understood the problem, Trying to recreate this problem based on your comment. Give me sometime pls :) |
If it helps for reproducing, I just ran into this bug/failure mode in the wild: alveusgg/alveusgg#856 |
I have created a sample repo to recreate this problem Note:
Without any updates to the current dependabot (without this PR changes), I saw below behaviors Scenario 1When
then PR's generated
Scenario 2When
then PR's generated
Scenario 3When
then PR's generated
As far as I know things are working as per the dependabot documentation. Could you please help me on recreating the issue that we are planning to address by this PR changes. FYI |
@thavaahariharangit as stated previously, we have the exact same problem, thus why I ended up here. To help illustrate, here's (a simplified snippet of) our dependabot.yml:
Hope that helps. |
@thavaahariharangit I just had a look at your sample repo. You have a |
Here's a reproduction repro: I've created a very simple pnpm workspaces repository with two packages with old dependencies, and as you can see in the PRs opened:
None of them updates the lock file, as you'd expect. |
What are you trying to accomplish?
Iterate the folder tree upwards in order to find a pnpm-lock file when the directory source points to a nested workspace.
This hopefully addresses #10758, but I'd like to be able to verify these changes against my own repository. Is there any way to point dependabot to a fork in GitHub? I couldn't find any docs on it.
Anything you want to highlight for special attention from reviewers?
I'm not familiar with ruby project standards, so please let me know if you'd rather structure tests or code in a different way. I tried following the existing standards, but might have missed something.
How will you know you've accomplished your goal?
Checklist