chef-chruby icon indicating copy to clipboard operation
chef-chruby copied to clipboard

getting rid of redirect for remote file

Open pghalliday opened this issue 11 years ago • 4 comments

For some reason I was consistently hitting the redirect limit with chef 11.10.4 even though there was only 1 redirect. This change gets rid of that 1 redirect.

pghalliday avatar Mar 21 '14 00:03 pghalliday

Same problem here, just locked the Chef version until had time to investigate. Don't know how many versions of chef ago it was introduced, worked on 11.6.x just fine. Might just be a Chef gem bug, but I hope this can be merged either way.

tombruijn avatar Mar 21 '14 10:03 tombruijn

It was not working on mine too... thanks for the fix

As a more permanent workaround i think we should use : http://docs.opscode.com/resource_git.html and clone/checkout the tag version directly

brodock avatar Mar 22 '14 21:03 brodock

Made modifications to support git in pull request #20, but it has the downside of not being able to check the checksum of the installation. With git however we'd be rid of the new redirect limit and not have to worry about changes on GitHub's end.

tombruijn avatar Mar 22 '14 23:03 tombruijn

you don't need to checksum it because git already do it for you... if you really want to make sure you are getting what you think you are, just "checkout" by the commit hash

brodock avatar Mar 25 '14 11:03 brodock