Coder Social home page Coder Social logo

Comments (6)

alup avatar alup commented on June 16, 2024

You are right, this is an issue ... The problem is that currently, I can't think of a way to check that rehash has already been called. Maybe, we should skip this action.

from puppet-rbenv.

teleservices avatar teleservices commented on June 16, 2024

I understand the quandary. If there were a way to detect the need for
rehash, there would probably not be a rehash function ;-)

Though I have not verified this, I think that the installation process
includes an initial rehash after a ruby has been installed. At least
it is implied in the docs. So perhaps an explicit rehash is not
needed? Also, I assume anyone using rbenv is well aware of the need
to rehash after creating/installing any binaries, So, perhaps
skipping an explicit rehash is OK?

I can live with this as is for now, as the convenience of your module
far outweighs this issue. However, I hope you agree with me that an up
to date system should generate no actions.

On Sun, Jul 8, 2012 at 1:14 PM, Andreas Loupasakis
[email protected]
wrote:

You are right, this is an issue ... The problem is that currently, I can't think of a way to check that rehash has already been called. Maybe, we should skip this action.


Reply to this email directly or view it on GitHub:
#12 (comment)

from puppet-rbenv.

fgrehm avatar fgrehm commented on June 16, 2024

Couldn't this be solved by using Puppet's notify + refreshonly? I'll give a shot at it later on tonight

from puppet-rbenv.

fgrehm avatar fgrehm commented on June 16, 2024

Well, it seems that this is not happening anymore, @teleservices would you be able to double check up there with the most recent version?

from puppet-rbenv.

vjt avatar vjt commented on June 16, 2024

I confirm - this fix was introduced during the refactor, and now a temporary "semaphore" lockfile is used to avoid re-executing rehash every time.

The relevant commit is here.

from puppet-rbenv.

alup avatar alup commented on June 16, 2024

Nice, so this can be closed.

from puppet-rbenv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.