question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Custom git path(s) based on environment

See original GitHub issue

Hi, I have a project which is being built on multiple environments with multiple git paths. In some environments, it is throwing the following error.

**ERROR** patch-package requires Git

Please make sure that git is available in all of the necessary environments for your project.

Is there a way in which I can pass custom paths and make the builds pass?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ivikashcommented, Oct 17, 2018

Created new patches and it works.

0reactions
ivikashcommented, Oct 17, 2018

6.0.0-5 seems to be working for me. But getting the following error.

> patch-package
patch-package: Applying patches...
**ERROR** Failed to apply patch for package somePackage
  This error was caused because patch-package cannot apply the following patch file:
    patches/somePackage+0.10.0.patch
  If removing node_modules and trying again doesn't fix this, maybe there was
  an accidental change made to the patch file? If not, then it's probably a bug
  in patch-package, so please submit a bug report. Thanks!
    https://github.com/ds300/patch-package/issues
Read more comments on GitHub >

github_iconTop Results From Across the Web

Git - Environment Variables - Git SCM
HOME isn't usually considered customizable (too many other things depend on it), ... A “pathspec” refers to how you specify paths to things...
Read more >
Installing Git in PATH with GitHub client for Windows
Navigate to the Environmental Variables Editor (instructions) and find the Path variable in the “System Variables” section.
Read more >
Customize pipeline configuration - GitLab Docs
Specify a custom CI/CD configuration file · On the top bar, select Main menu > Projects and find your project. · On the...
Read more >
Build Azure Repos Git repositories - Azure Pipelines
Choose a repository to build ... You create a new pipeline by first selecting a repository and then a YAML file in that...
Read more >
Incorrect $PATH variable in pre-commit exec environment
MacOS 11.1 update broke Fork's exec environment. echo $PATH in ... Only git commit requires custom exec environment, so there's no need to ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found