Comments (10)
Awesome! Thank you, everybody! I'll look for a new beta on Monday and give it a try, then report back. Have a great weekend, everyone!
Cheers,
Simon
from pacote.
@zkat @zarenner @ivanph, I verified I can now install private packages from VSTS Package Management with 5.0.0-beta.44 (presumably works with 43 as well, but 44 was latest available). Way to go! And, thank you!
from pacote.
@zkat @simonua I don't think I'll likely have time today to take a deeper look at this, but I'll try to tomorrow or Monday.
from pacote.
pacote should be emulating the behavior in npm itself for this. This was intended to be handled in https://github.com/zkat/pacote/blob/latest/lib/fetchers/registry/fetch.js#L74-L78
I'm not sure why it's not working right now. I'll look into it. :)
from pacote.
It would be useful to see a pair of URLs here
from pacote.
Thanks! FYI I don't see getHeaders getting called on the redirect.
An example:
https://zlrenner.pkgs.visualstudio.com/_packaging/aaa/npm/registry/npmtest/-/npmtest-1.0.0.tgz responds with a 302 to Location https://vsblobprodscussu0shard19.blob.core.windows.net/b-ce7824a198f144319abb2dd6dbc33de7/9D4EBD0553ED8F94889EC70CDA985199EF1284A516751904BDBB4F28192BC4B000.blob?sv=2015-12-11&sr=b&si=1&sig=redacted&spr=https&se=2017-05-05T03%3A10%3A10Z
from pacote.
ohhhhh. It's in the redirect.
It makes more sense that this would be forwarding headers like that. I wonder why request
doesn't send them (we use node-fetch
under the hood now, instead). I'll look into it more.
I'm assuming zlrenner.pkgs.visualstudio.com
is the same host as the manifest, and that blob.core is where we shouldn't pass the creds to?
from pacote.
Aha, here's where request
does it:
from pacote.
npm/node-fetch-npm#1 I've traced the source to node-fetch-npm itself, and pointed out where in the code it probably needs to be patched.
from pacote.
It landed. The redirect auth issue should be fixed now. Cheers to @ivanph for the patch :)
from pacote.
Related Issues (20)
- Cannot require pacote
- Git semver does not resolve versions with prerelease or build info
- can no longer get manifest for custom tarball URL HOT 1
- git: support some form of integrity HOT 3
- jsonFromStream doesn't handle symlinks HOT 2
- connections opened but never closed HOT 9
- Crashes if run without cache option HOT 4
- Build failed ERR_STREAM_WRITE_AFTER_END: node v9.7.1 withExEditorHost v3.0.3 archlinux x86_64 HOT 24
- spurious ENOVERSIONS on git dependencies HOT 4
- A promise was created in a handler error HOT 24
- `_from` key of publishing package json should not have local file path of `tgz` file
- git: Does pacote respect per-project .npmrc file "git" parameter? HOT 1
- How to make pacote respect .npmrc? HOT 9
- Relation to npm / yarn / etc? HOT 2
- Unable to add local tarballs with sha1 integrity HOT 2
- Transitive dependency ([email protected]) license prevents use of pacote HOT 2
- "err.code.match is not a function" after a failed git clone HOT 10
- pacote should pass on opts.uid/opts.gid when invoking cacache.put
- pacote leaves user-owned files in /usr/lib/node_modules on Linux under sudo
- npm install failing on github repository
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 pacote.