-
Notifications
You must be signed in to change notification settings - Fork 24
Remove assumption regarding local git clone #209
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,10 +2,6 @@ | |
|
|
||
| import { basename, dirname, join } from 'node:path'; | ||
| import { writeFile } from 'node:fs/promises'; | ||
| import { | ||
| getBaseGitHubUrl, | ||
| getCurrentGitHash, | ||
| } from './utils/getBaseGitHubUrl.mjs'; | ||
| import { extractExports } from './utils/extractExports.mjs'; | ||
| import { findDefinitions } from './utils/findDefinitions.mjs'; | ||
| import { checkIndirectReferences } from './utils/checkIndirectReferences.mjs'; | ||
|
|
@@ -54,9 +50,9 @@ export default { | |
| if (input.length > 0) { | ||
| const repositoryDirectory = dirname(input[0].path); | ||
|
|
||
| const repository = getBaseGitHubUrl(repositoryDirectory); | ||
| const repository = 'https://github.com/nodejs/node'; | ||
|
|
||
| const tag = getCurrentGitHash(repositoryDirectory); | ||
| const tag = 'HEAD'; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it fine for us to assume HEAD?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In dev it shouldn't really matter, but for releases it needs to be a hash since the line numbers referenced are going to change eventually. I.e. for the latest v20 release, https://github.com/nodejs/node/blob/bb1a61d8737feff534bb85368dab3b7c554c863d/lib/_http_client.js#L869 is correct vs https://github.com/nodejs/node/blob/HEAD/lib/_http_client.js#L869 points to something else. |
||
|
|
||
| baseGithubLink = `${repository}/blob/${tag}`; | ||
| } | ||
|
|
||
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.
Can you delete these utils if they're not used anywhere else?