Skip to content

ghes support - #157

Merged
ericsciple merged 1 commit into
node-versionsfrom
users/ericsciple/m262ghes
May 18, 2020
Merged

ghes support#157
ericsciple merged 1 commit into
node-versionsfrom
users/ericsciple/m262ghes

Conversation

@ericsciple

@ericscipleericsciple commented May 15, 2020

Copy link
Copy Markdown
Collaborator
  1. Remote auth token when calling Dotcom from GHES
  2. Make download from Releases best effort

Comment threaddist/index.js
const installer = __importStar(__webpack_require__(749));
const auth = __importStar(__webpack_require__(202));
const path = __importStar(__webpack_require__(622));
const url_1 = __webpack_require__(835);

Copy link
Copy Markdown
CollaboratorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ignore index.js, review .ts

Comment threadsrc/installer.ts
let info: INodeVersionInfo | null = null;

//
// Try download from internal distribution (popular versions only)

@ericscipleericscipleMay 15, 2020

Copy link
Copy Markdown
CollaboratorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

get info + download inside try/catch

The formatting rules bloat the line count. We might be on old formatting rules.

Comment threadsrc/installer.ts Outdated
Comment threadsrc/installer.ts
Comment threadsrc/installer.ts Outdated
Comment threadsrc/installer.ts Outdated
@ericsciple
ericsciple changed the base branch from start-v2 to node-versionsMay 15, 2020 18:31
@ericsciple
ericscipleforce-pushed the users/ericsciple/m262ghes branch from f08ba32 to d59bcf2CompareMay 15, 2020 18:43
@ericscipleericsciple changed the title [NOT READY DO NOT MERGE] ghes supportghes supportMay 15, 2020
Comment threadsrc/installer.ts
//
console.log('Extracting ...');
let extPath: string;
info = info || ({} as INodeVersionInfo); // satisfy compiler, never null when reaches here

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool

Comment threadsrc/main.ts
Comment threadsrc/main.ts Outdated
@ericsciple

Copy link
Copy Markdown
CollaboratorAuthor

Wait for actions/toolkit#460 to merge then bump tool-cache

@ericsciple
ericscipleforce-pushed the users/ericsciple/m262ghes branch from 222d743 to 0c1123bCompareMay 18, 2020 13:58
@ericsciple
ericscipleforce-pushed the users/ericsciple/m262ghes branch from 0c1123b to e37249eCompareMay 18, 2020 14:01
@ericsciple
ericsciple merged commit e73ffbc into node-versionsMay 18, 2020
@ericsciple
ericsciple deleted the users/ericsciple/m262ghes branch May 18, 2020 16:29

@LocalCragDirtBagLocalCragDirtBag left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gh pr checkout 157

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@ericsciple@bryanmacfarlane@LocalCragDirtBag