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

Node, Yarn and Docker version check added in dev.sh file #602

Merged
merged 4 commits into from
Oct 17, 2024

Conversation

sahitya-chandra
Copy link
Contributor

fixed #168

@jayantbh Sir please check

dev.sh Outdated
exit 1
fi

echo "Node.js, Yarn, and Docker versions are compatible. Proceeding..."
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this needs to be printed. In the "happy path" we should show as little noise as possible.

Copy link
Contributor Author

@sahitya-chandra sahitya-chandra Oct 16, 2024

Choose a reason for hiding this comment

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

then i can remove this fully and show nothing

@jayantbh
Copy link
Contributor

Please add a screenshot or screen recording of the change in action in the PR description

dev.sh Outdated
@@ -1,5 +1,59 @@
#!/bin/bash

REQUIRED_NODE_VERSION=22.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 am interested to know how you found these version's are correct and what is someone have higher version ?

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 his check uses the required version as the minimum version.
Actually, this is a good spot because the variables should be called MINIMUM_... instead of REQUIRED_....

local node_version yarn_version docker_version
local errors=()

# Check Node.js version
Copy link
Contributor

Choose a reason for hiding this comment

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

Would love to see this in action attach a video in PR

Copy link
Contributor

Choose a reason for hiding this comment

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

What's this change ? Try not to commit it if not related.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok sir

@VipinDevelops
Copy link
Contributor

@sahitya-chandra Please Add a video and some description to explain why this approach is good.
Great job 😄👍

@sahitya-chandra
Copy link
Contributor Author

Screencast.from.2024-10-17.19-38-30.webm

@jayantbh @VipinDevelops I can't change my docker version but I can say it is working fine
and my docker daemon was also off while taking this video that's that error came in the end

@jayantbh
Copy link
Contributor

image

You removed this line, and then in the last commit added it back in a different way, why? :D

image

@jayantbh
Copy link
Contributor

I'd have literally approved and merged it without that change right now. :D

@sahitya-chandra
Copy link
Contributor Author

@jayantbh Sir, I completly mised that

@jayantbh jayantbh merged commit 4bda170 into middlewarehq:main Oct 17, 2024
3 checks passed
@sahitya-chandra sahitya-chandra deleted the pre-req-check branch October 17, 2024 14:54
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.

Can we please mention the version numbers for all pre-requisites to run this project?
3 participants