Include a private Github repo as a binary in an atom plugin


#1

I am working on an atom plugin for a community, but I need to include a private github repository, which gets packaged as a npm package. How can I include the package as a binary? The issue I have right now - the upstream private dependency just pushed an update, and I wanted to get that update on my local branch, but I am running into errors trying to do that. This is the error I see -

npm ERR! git rev-list -n1 0.1.0: fatal: ambiguous argument '0.1.0': unknown revision or path not in the working tree.
npm ERR! git rev-list -n1 0.1.0: Use '--' to separate paths from revisions, like this:
npm ERR! git rev-list -n1 0.1.0: 'git <command> [<revision>...] -- [<file>...]'

Is there something I am missing? Below is my package.json

"dependencies": {
    "test-sdk": "domain/test.git#0.0.0",
    "jquery": "^2.1.4"
  },

I try updating the version to 0.1.0 and run ‘npm update’ - it fails there.


#2

In the dependencies section of your package’s package.json, you should be able to specify a “commit ref” after the hash sign #. This includes a commit SHA, a tag name or branch name. The error that you’re getting is saying that it can’t find a commit ref named 0.1.0.