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

update cli version #27

Merged
merged 1 commit into from
Apr 24, 2024
Merged

update cli version #27

merged 1 commit into from
Apr 24, 2024

Conversation

ajwootto
Copy link
Contributor

No description provided.

@ajwootto ajwootto requested a review from jonathannorris April 24, 2024 21:09
Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @ajwootto - I've reviewed your changes and they look great!

Here's what I looked at during the review
  • 🟡 General issues: 2 issues found
  • 🟢 Security: all looks good
  • 🟡 Testing: 1 issue found
  • 🟢 Complexity: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

@@ -26,7 +26,7 @@ export async function run() {
}

try {
await exec('npm', ['install', '-g', '@devcycle/cli@5.10.1'])
await exec('npm', ['install', '-g', '@devcycle/cli@5.14.5'])
Copy link

Choose a reason for hiding this comment

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

suggestion (code_refinement): Consider specifying a more flexible version range for @devcycle/cli.

Using a fixed version can lead to issues with maintainability and compatibility with other packages. A version range like '^5.14.5' might be more appropriate to automatically include non-breaking updates.

Suggested change
await exec('npm', ['install', '-g', '@devcycle/[email protected]'])
await exec('npm', ['install', '-g', '@devcycle/cli@^5.14.5'])

@@ -26,7 +26,7 @@
}

try {
await exec('npm', ['install', '-g', '@devcycle/cli@5.10.1'])
await exec('npm', ['install', '-g', '@devcycle/cli@5.14.5'])
Copy link

Choose a reason for hiding this comment

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

suggestion (testing): Missing test for updated CLI version

The update to the CLI version should be accompanied by a test to verify that the new version installs correctly and integrates with the system as expected. This is crucial to ensure that the update does not introduce any regressions or compatibility issues.

Suggested change
await exec('npm', ['install', '-g', '@devcycle/[email protected]'])
const cliVersion = '@devcycle/[email protected]';
await exec('npm', ['install', '-g', cliVersion]);
const verifyInstall = await exec('npm', ['list', '-g', cliVersion]);
if (!verifyInstall.stdout.includes(cliVersion)) {
throw new Error('Installation of ' + cliVersion + ' failed.');
}

@ajwootto ajwootto merged commit 18e58ad into main Apr 24, 2024
5 checks passed
@ajwootto ajwootto deleted the update-cli branch April 24, 2024 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants