Comments (11)
@tomekwi Looks like the warning is there:
till:napa-playground/ $ ./node_modules/.bin/napa till/foobar-jsjsjd
info git git://github.com/till/foobar-jsjsjd into foobar-jsjsjd
ERR! fatal: remote error:
Repository not found.
Exit code is broken:
till:napa-playground/ $ echo $?
0
from napa.
If I remember well I meant the reference – as in till/easybib-cookbooks#foobar-jsjsjd
from napa.
@tomekwi Ah, I see. I tried to do a patch for it, but I gave up yesterday. Got confused with the callbacks.
from napa.
https://www.dropbox.com/s/3i54o071wecfi86/Screenshot%202015-10-29%2011.46.42.png?dl=0
from napa.
Wow! Looks neat!
But @caseyWebb you know what I meant through reference don’t you? I meant napa 'jquery/jquery#revision-that-is-not-there'
.
from napa.
I don't doubt that I'm misunderstanding, but the format in that screenshot is package@ref location/installed
, simply because that's the way npm does it.
ex: https://www.dropbox.com/s/yzgxfd7dfd5kexb/Screenshot%202015-11-06%2013.19.13.png?dl=0
EDIT: I now realize that screenshot is confusing. nonexistent-branch
is the literal name of the branch in this case. So w/ your example above, it would say fatal: couldn't find remote ref foobar-jsjsjd
from napa.
I'm totally ok with changing the format, though. I was aiming to make it as npm-like as possible.
from napa.
When I try to install jquery/jquery#<reference>
, npm v3.3.12 does the following:
$ npm install jquery/jquery\#master
…/
└── [email protected] extraneous (git://github.com/jquery/jquery.git#67fa2eab6ef323b1d894e9e7f054c6e8c844d304)
$ npm install jquery/jquery\#non-existent
npm ERR! git rev-list -n1 non-existent: fatal: ambiguous argument 'non-existent': unknown revision or path not in the working tree.
npm ERR! git rev-list -n1 non-existent: Use '--' to separate paths from revisions, like this:
npm ERR! git rev-list -n1 non-existent: 'git <command> [<revision>...] -- [<file>...]'
npm ERR! git rev-list -n1 non-existent: fatal: ambiguous argument 'non-existent': unknown revision or path not in the working tree.
npm ERR! git rev-list -n1 non-existent: Use '--' to separate paths from revisions, like this:
npm ERR! git rev-list -n1 non-existent: 'git <command> [<revision>...] -- [<file>...]'
# Keeps trying forever…
Whereas napa v2.0.0 pretends as if everything where alright:
$ napa jquery/jquery\#master
info download https://github.com/jquery/jquery/archive/master.tar.gz into jquery#master
$ napa jquery/jquery\#non-existent
info download https://github.com/jquery/jquery/archive/non-existent.tar.gz into jquery#non-existent
$ echo $?
0
from napa.
That above screenshot is speculative, not in any released version yet. I've been working on a pretty significant update that will make upgrading packages more npm-like. The branch this currently lives in is version-tracking
, if you're interested.
from napa.
Sounds great! Thanks for the clarification!
By the way, in my current projects I don’t need napa – so I won’t be contributing much in the near future.
But it’s great to see that this great project is alive again! Thanks, @caseyWebb!
from napa.
+1
from napa.
Related Issues (20)
- some question, about how to use it. I just want to know where this package used to? HOT 3
- Can't download jQuery HOT 2
- --save flag HOT 1
- Download a single js file and give it a location HOT 1
- Custom install folder HOT 2
- Trouble installing a dependency that uses napa HOT 7
- Peer dependencies HOT 3
- can't napa be run on npm postInstall hook? HOT 1
- download a single JS file HOT 1
- Flat (stripped folders) of ZIPs / Update download to 5 HOT 1
- Yarn integration: Is it possible? HOT 2
- napa not working ubuntu HOT 3
- Default version for generated package.json is always '0.0.0' HOT 1
- Nested napa dependencies not resolving correctly
- Packages installed with napa removed after install other package HOT 5
- Corrupt cache HOT 1
- zip folder structure lost
- r HOT 1
- Downloading a jar unpacks it
- RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from napa.