In FileSystem.js, special-case the cp command#2264
In FileSystem.js, special-case the cp command#2264jcubic merged 1 commit intoisomorphic-git:mainfrom
Conversation
|
Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. Walkthrough
Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧬 Code graph analysis (1)src/models/FileSystem.js (1)
🔇 Additional comments (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
jcubic
left a comment
There was a problem hiding this comment.
Looks good.
We really need to restore browser tests.
src/models/FileSystem.js
Outdated
| if (fs.cp) target._cp = fs.cp.bind(fs) | ||
| } else { | ||
| if (fs.cp) target._cp = pify(fs.cp.bind(fs)) | ||
| } |
There was a problem hiding this comment.
There is already an if statement that checks isPromiseFs(fs) can you put your wrappers there?
jcubic
left a comment
There was a problem hiding this comment.
After a second glance, this can be improved a bit.
Let's not duplicate code.
done. |
|
NPM revoked all access tokens in December, and I'm unable to add a new token on Azure DevOps. I don't have permissions. I will try to publish by hand locally. We really need to migrate the GitHub actions now. |
isomorphic-git-bot says "Invalid npm token". Well, probably log into npm, generate tokens, put them in Azure or GHA, or wherever they are used. |
|
Yes, NPM revoked all the NPM tokens a few days ago. They announced it a few months ago; there was a banner on the website. I thought that I could change the token because I had access settings. I remove the token but can't add a new one. The Azure DevOps file is confusing. I have no idea what it's doing based on a file. Maybe GitHub Actions has a more straightforward flow. |
|
We need to fully migrate to GitHub Actions if we want to go forward with the project. |
|
🎉 This PR is included in version 1.36.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
Billy (original author) replied on LinkedIn and gave me the access to Azure DevOps. It will work for now. |
The Quick Start Guide uses LightningFS. That filesystem doesn't support
cp. The new submodule feature added thecpcommand for testing purposes. It's only for preliminary test case setup, not during the real api calls, or in production. Therefore if an end-user has a filesystem such as LightningFS which is missingcp, they shouldn't be adversely affected.FileSystem.js already special-cases the
rmcommand. In this PR, handlecpthe same way.The Quick Start Guide was failing on 1.36.0 with a "bind" error. That should be solved here. Going back to 1.35, there are different errors about "Missing Buffer dependency". That's connected to the "Migrate from BrowserFS to ZenFS" commits, and are a separate problem.
Please test with the Quick Start Guide. If the "bind" error is solved, and it falls back to 1.35 "Missing Buffer dependency", at least that's progress, and it might be enough to solve end-user issues.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.