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.

Support (or at least non-fatal handling) for git dependencies?

See original GitHub issue

Git dependencies are causing fatal errors on my system.

My npm-shrinkwrap.json contains this github dependency entry:

"techan": {
  "version": "0.6.0",
  "from": "techan@git://github.com/andredumas/techan.js#f7d1489b61a2dd951036f9dc207d1c91339b00f9",
  "resolved": "git://github.com/andredumas/techan.js#f7d1489b61a2dd951036f9dc207d1c91339b00f9"
},

This derives from my package.json entry: "techan": "andredumas/techan.js#0.6.0"

Shrinkpack (or maybe it’s npm’s cache API) doesn’t seem to know how to respond:

error adding techan@0.6.0 to npm cache: Error: Registry returned 404 for GET on https://registry.npmjs.org/techan
Please raise an issue at https://github.com/JamieMason/shrinkpack/issues

    TypeError: Cannot read property 'npm' of undefined
        at Object.addPackage (D:\dev\apps\GeonomicsCarbonSim\deploy\WebRoot\node_modules\shrinkpack\src\shrinkpack.js:24:33)
        at addToShrinkpack (D:\dev\apps\GeonomicsCarbonSim\deploy\WebRoot\node_modules\shrinkpack\index.js:117:27)
        at tryCatchReject (D:\dev\apps\GeonomicsCarbonSim\deploy\WebRoot\node_modules\shrinkpack\node_modules\when\lib\makePromise.js:845:30)
        at runContinuation1 (D:\dev\apps\GeonomicsCarbonSim\deploy\WebRoot\node_modules\shrinkpack\node_modules\when\lib\makePromise.js:804:4)
        at Fulfilled.when (D:\dev\apps\GeonomicsCarbonSim\deploy\WebRoot\node_modules\shrinkpack\node_modules\when\lib\makePromise.js:592:4)
        at Pending.run (D:\dev\apps\GeonomicsCarbonSim\deploy\WebRoot\node_modules\shrinkpack\node_modules\when\lib\makePromise.js:483:13)
        at Scheduler._drain (D:\dev\apps\GeonomicsCarbonSim\deploy\WebRoot\node_modules\shrinkpack\node_modules\when\lib\Scheduler.js:62:19)
        at Scheduler.drain (D:\dev\apps\GeonomicsCarbonSim\deploy\WebRoot\node_modules\shrinkpack\node_modules\when\lib\Scheduler.js:27:9)
        at process._tickCallback (node.js:419:13)

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
JamieMasoncommented, Apr 3, 2016

Version 0.5.0 has been released, please could you give it a try and update or close this issue?

Thanks a lot @thedewi @DylanPiercey

0reactions
JamieMasoncommented, Apr 4, 2016

Closing just as part of issue housekeeping, please re-open if needed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Git and Project Dependencies | Atlassian Git Tutorial
Dependencies are an important aspect of software development. Allows you to manage the versions of other libraries used by your code. Read and...
Read more >
Dependency Scanning - GitLab Docs
Supported languages and package managers. Dependency Scanning automatically detects the languages used in the repository. All analyzers matching the detected ...
Read more >
support for git dependencies · Issue #238 - GitHub
In this case haxelib.json must be exists in root of repo;; What about another (potential) supported systems such as Mercurial or Subversion?
Read more >
Git dependencies - Unity - Manual
Git dependencies. When the Package Manager fetches a package from a Git repository, it adds the package locally to your project.
Read more >
EAPI Usage and Description - Gentoo Development Guide
Gentoo policy is to support upgrades for installations at least a year old ... The :slot dependency syntax continues to behave like in...
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