-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: make pack and exec work with git hash refs #7815
Conversation
d79c6de
to
c629c52
Compare
c629c52
to
c68b9a0
Compare
c68b9a0
to
88615a2
Compare
@@ -7,6 +7,7 @@ const spawk = tspawk(t) | |||
|
|||
const fs = require('node:fs') | |||
const path = require('node:path') | |||
const { resolve } = require('node:path') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we're already requiring node:path
in line 9.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll correct it as chore in next pr whenever I get chance.
|
||
t.test('packs from git spec', async t => { | ||
const spec = 'test/test#111111aaaaaaaabbbbbbbbccccccdddddddeeeee' | ||
const pkgPath = path.resolve(__dirname, '../../fixtures/git-test.tgz') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not the biggest fan of having this tgz file in fixtures, but if I weigh it against the effort required to build it during tests it makes sense.
Passing arborist constructor to pacote.manifest call because internally when fetching git deps DirFetcher requires Arborist constructor from GitFetcher https://github.com/npm/pacote/blob/main/CHANGELOG.md#1400-pre3-2022-09-28
Fixes: #6723