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

Add an option to select another mirror #4

Merged
merged 1 commit into from
Aug 28, 2020
Merged

Conversation

dcodeIO
Copy link
Contributor

@dcodeIO dcodeIO commented Apr 9, 2020

This PR investigates adding a mirror option, plus a test using v8-canary, an Experimental Node.js mirror on V8 lkgr. Mostly a suggestion since I don't know if you are open to changes like this, but was easy to do so I thought I make a PR right away.

In my particular use case I'd like to obtain the latest v8-canary build for WebAssembly testing, and having a proper way to do so instead of using some sort of workaround would be great :)

@@ -18,7 +18,7 @@ suite('nv', () => {
assert.strictEqual(versions[0].versionName, 'v10')
assert.strictEqual(versions[0].start.toISOString(), '2018-04-24T00:00:00.000Z')
assert.strictEqual(versions[0].lts.toISOString(), '2018-10-30T00:00:00.000Z')
assert.strictEqual(versions[0].maintenance.toISOString(), '2020-04-01T00:00:00.000Z')
assert.strictEqual(versions[0].maintenance.toISOString(), '2020-05-19T00:00:00.000Z')
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This change was necessary to make the tests pass. Didn't investigate further since it's unrelated.

Copy link
Member

Choose a reason for hiding this comment

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

Interesting, since this test technically tests the upstream json it is probably they changed it. Now that you have this feature though, we could totally setup a mock mirror and point to it for the tests!

Copy link
Member

Choose a reason for hiding this comment

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

Ah, didn't see this PR earlier - this was extended in nodejs/Release@9bc5275

Copy link
Member

@wesleytodd wesleytodd left a comment

Choose a reason for hiding this comment

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

Lets let it sit for a few days to give others a chance to review, but looks too to me!

@@ -18,7 +18,7 @@ suite('nv', () => {
assert.strictEqual(versions[0].versionName, 'v10')
assert.strictEqual(versions[0].start.toISOString(), '2018-04-24T00:00:00.000Z')
assert.strictEqual(versions[0].lts.toISOString(), '2018-10-30T00:00:00.000Z')
assert.strictEqual(versions[0].maintenance.toISOString(), '2020-04-01T00:00:00.000Z')
assert.strictEqual(versions[0].maintenance.toISOString(), '2020-05-19T00:00:00.000Z')
Copy link
Member

Choose a reason for hiding this comment

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

Interesting, since this test technically tests the upstream json it is probably they changed it. Now that you have this feature though, we could totally setup a mock mirror and point to it for the tests!

@dominykas
Copy link
Member

@wesleytodd this should probably get merged at this point?

@wesleytodd wesleytodd merged commit 1593047 into pkgjs:master Aug 28, 2020
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