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

fix(workflow-upgrade): fix error getting peerDeps and buffer overflow #696

Merged
merged 2 commits into from
Feb 16, 2024

Conversation

jordan-a-young
Copy link
Member

This pr started with trying to fix a bug where an error was thrown because the call to get peerDeps was failing because the lockfile was already deleted. I fixed this issue and also added some enhancements

  • Added logs
  • Increased the max buffer size for the exec call to install node_modules (I was running into a buffer overflow issue)
  • Changed the way the latest version of @availity/workflow and eslint-config-availity is calculated. We now use npm to get latest version

Logger.info('Deleting Package-Lock');
fs.unlinkSync(pkgLock);
// Get latest verison of packages
let latestWorkflowVersion = await getLatestNpmVersion('@availity/workflow', '10.0.0');
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should default to 10.0.6 so bug fixes are included

packages/workflow-upgrade/index.js Outdated Show resolved Hide resolved
@jordan-a-young jordan-a-young merged commit 460385c into master Feb 16, 2024
7 checks passed
@jordan-a-young jordan-a-young deleted the fix/upgrade-workflow-error branch February 16, 2024 20:12
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