ds300 / ds300/patch-package

This error was caused because patch-package cannot apply the following patch file

Open
#419 4 comments 4 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
11.2k
Forks
325
PR merge metrics
No merged PRs in 30d

Description

I have the following issue when using patch-package, the iOS version fail to install:

```
dka@dka:[~/workspace/github.com/pass-culture/pass-culture-app-native (PC-16718)]: npx patch-package algoliasearch
patch-package 6.4.7
• Creating temporary folder
• Installing algoliasearch@4.14.1 with yarn
• Diffing your files with clean files
✔ Created file patches/algoliasearch+4.14.1.patch

💡 algoliasearch is on GitHub! To draft an issue based on your patch run
```

Then, Circle-CI breaks with:

```
**ERROR** Failed to apply patch for package algoliasearch at path

node_modules/algoliasearch

This error was caused because patch-package cannot apply the following patch file:

patches/algoliasearch+4.14.1.patch

Try removing node_modules and trying again. If that doesn't work, maybe there was
an accidental change made to the patch file? Try recreating it by manually
editing the appropriate files and running:

patch-package algoliasearch

If that doesn't work, then it's a bug in patch-package, so please submit a bug
report. Thanks!

https://github.com/ds300/patch-package/issues

---
patch-package finished with 1 error(s).
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Exited with code exit status 1
```

I checked the `yarn.lock` and :

```
dka@dka:[~/workspace/github.com/pass-culture/pass-culture-app-native (PC-16718)]: cat yarn.lock | grep algoliasearch
algoliasearch-helper@^3.10.0:
resolved "https://registry.yarnpkg.com/algoliasearch-helper/-/algoliasearch-helper-3.10.0.tgz#59a0f645dd3c7e55cf01faa568d1af50c49d36f6"
algoliasearch@^4.14.1:
resolved "https://registry.yarnpkg.com/algoliasearch/-/algoliasearch-4.14.1.tgz#7f24cabd264f8294b461d108e1603e673571e806"
algoliasearch-helper "^3.10.0"
algoliasearch-helper "^3.10.0"
dka@dka:[~/workspace/github.com/pass-culture/pass-culture-app-native (PC-16718)]: cat package.json | grep algoliasearch
"algoliasearch": "^4.14.1",

```

So everything seems fine, why is this failing?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.