Skip to content
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

ghes support #157

Merged
merged 1 commit into from
May 18, 2020
Merged

ghes support #157

merged 1 commit into from
May 18, 2020

Conversation

ericsciple
Copy link
Collaborator

@ericsciple ericsciple commented May 15, 2020

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

@@ -4618,6 +4618,7 @@ const core = __importStar(__webpack_require__(470));
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
Collaborator Author

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

let info: INodeVersionInfo | null = null;

//
// Try download from internal distribution (popular versions only)
Copy link
Collaborator Author

@ericsciple ericsciple May 15, 2020

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.

src/installer.ts Outdated Show resolved Hide resolved
src/installer.ts Outdated Show resolved Hide resolved
src/installer.ts Outdated Show resolved Hide resolved
@ericsciple ericsciple changed the base branch from start-v2 to node-versions May 15, 2020 18:31
@ericsciple ericsciple changed the title [NOT READY DO NOT MERGE] ghes support ghes support May 15, 2020
}

//
// Extract
//
console.log('Extracting ...');
let extPath: string;
info = info || ({} as INodeVersionInfo); // satisfy compiler, never null when reaches here
Copy link
Member

Choose a reason for hiding this comment

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

cool

src/main.ts Outdated Show resolved Hide resolved
@ericsciple
Copy link
Collaborator Author

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

@ericsciple ericsciple merged commit e73ffbc into node-versions May 18, 2020
@ericsciple ericsciple deleted the users/ericsciple/m262ghes branch May 18, 2020 16:29
Copy link

@LocalCragDirtBag LocalCragDirtBag left a comment

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 free to 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