Skip to content

fix: use npm view command to get gradle versions from registry in order to fix the problems when private npm registry is configured #4308

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

Merged
merged 1 commit into from
Jan 22, 2019

Conversation

Fatme
Copy link
Contributor

@Fatme Fatme commented Jan 22, 2019

Rel to #4283

PR Checklist

What is the current behavior?

{N} CLI does not work when private npm registry is configured

What is the new behavior?

{N} CLI works when private npm registry is configured

Fixes/Implements/Closes #[Issue Number].

Copy link
Contributor

@rosen-vladimirov rosen-vladimirov left a comment

Choose a reason for hiding this comment

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

After handling comments

const result = await this.$packageManager.view(TNS_ANDROID_RUNTIME_NAME, { "dist-tags": true });
runtimeVersion = result.latest;
} catch (err) {
this.$logger.trace('error while getting latest android runtime version from view command');
Copy link
Contributor

Choose a reason for hiding this comment

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

Please print the real error today.
Also, Error should start with capital letter.

const output = await this.$packageManager.view(`${TNS_ANDROID_RUNTIME_NAME}@${runtimeVersion}`, { gradle: true });
runtimeGradleVersions = { gradle: output };
} catch (err) {
const registryData = await this.$packageManager.getRegistryPackageData(TNS_ANDROID_RUNTIME_NAME);
Copy link
Contributor

Choose a reason for hiding this comment

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

Please print the error here

…rder to fix the problems when private npm registry is configured

Rel to #4283
@Fatme Fatme force-pushed the fatme/fix-private-npm-registry branch from 399737b to 13b0f4c Compare January 22, 2019 08:00
@Fatme
Copy link
Contributor Author

Fatme commented Jan 22, 2019

run ci

@Fatme Fatme merged commit 3a418d5 into master Jan 22, 2019
@Fatme Fatme deleted the fatme/fix-private-npm-registry branch January 22, 2019 12:31
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.

2 participants