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

Windows PATH bug #154

Open
jblaine opened this issue Oct 13, 2022 · 0 comments
Open

Windows PATH bug #154

jblaine opened this issue Oct 13, 2022 · 0 comments

Comments

@jblaine
Copy link

jblaine commented Oct 13, 2022

👻 Brief Description

I was using this cookbook as a reference for one I am writing and while just reading the source code I believe I happened across a latent bug in the handling of adding the git installation path to the Windows PATH

I am 99.99% sure that at https://github.com/sous-chefs/git/blob/main/resources/client_windows.rb#L38 the code should be:

not_if { ENV['PATH'] =~ /#{GIT_PATH}/ }
and NOT
not_if { ENV['PATH'] =~ /GIT_PATH/ }
as you don't want to be looking for the string literal "GIT_PATH" but the value of that variable, interpolated.

🥞 Cookbook version

11.1 but expect that this exists in far earlier versions.

👩‍🍳 Chef-Infra Version

N/A

🎩 Platform details

N/A

Steps To Reproduce

N/A

🚓 Expected behavior

N/A

➕ Additional context

N/A

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

No branches or pull requests

1 participant