carvel icon indicating copy to clipboard operation
carvel copied to clipboard

Install script improvements

Open davidpanic opened this issue 2 years ago • 13 comments

The current install script has bogus requirements of bash and shasum. Because of the way it is written the script runs fine with sh and sha1sum.

This should be fixed because some environments, for example the Alpine Linux docker image, do not have them. If you are checking for curl and wget, you should also check for sha1sum (or better yet use sha256sum).

The hard requirement on bash is just unneeded.

The requirements can easily be bypassed by just faking the environment, proving my point:

cat <(echo "BASH_VERSION=fake; function shasum() { sha1sum $@; }") <(wget -O- https://carvel.dev/install.sh) | sh

davidpanic avatar Jun 14 '23 14:06 davidpanic

This would actually be true for all the tools so we should probably move this issue

100mik avatar Jun 19 '23 15:06 100mik

Thanks for bringing this up! The ask is reasonable, but I believe we should see if folks run into this often. If this is a recurring pain point then we would be open to working towards a solution 🙏🏼

100mik avatar Jun 19 '23 15:06 100mik

Can I work on this project!

Kiran-pro2001 avatar Apr 30 '24 12:04 Kiran-pro2001

@Kiran-pro2001 Sure! Feel free to raise a PR.

praveenrewar avatar May 07 '24 20:05 praveenrewar

As a matter of fact, the script is autogenerated from the template in https://github.com/carvel-dev/release-scripts/blob/main/scripts/install_sh/install.sh.txt, so any change should be done there.

joaopapereira avatar May 24 '24 14:05 joaopapereira

Hey! Can I work on this Issue?

Ghanasree avatar Nov 08 '24 17:11 Ghanasree

The PR #785 was created against this repo and I asked @Jenil1905 to create it in the https://github.com/carvel-dev/release-scripts repository. Was not sure if the answer was "no, I will not do it" or "no, I do not mind creating the PR in that repo" 😄 Nevertheless I am open to any of you 2 to create a PR in that repository and I will review it.

joaopapereira avatar Nov 08 '24 17:11 joaopapereira

https://github.com/carvel-dev/release-scripts/pull/44 Does this work? This is my first time contributing in a real project and I will be very interested in knowing my mistakes(which I am sure are many).

Watrdguy avatar Jul 26 '25 21:07 Watrdguy

can i work on this issue

Shruti2110-coder avatar Oct 10 '25 18:10 Shruti2110-coder

Can you assign this issue , i will try my best to fix this

Mishradity avatar Oct 12 '25 16:10 Mishradity

Given that @Watrdguy can yll instead review https://github.com/carvel-dev/release-scripts/pull/44 and validate it to make sure it works?

joaopapereira avatar Oct 13 '25 19:10 joaopapereira