Comments (6)
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.
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.
Couldn't this be solved by using Puppet's notify
+ refreshonly
? I'll give a shot at it later on tonight
from puppet-rbenv.
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.
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.
Nice, so this can be closed.
from puppet-rbenv.
Related Issues (20)
- Tag released version HOT 1
- Global ruby version not set correctly after sourcing .rbenvrc HOT 1
- rbenv plugins always cause puppet changes HOT 1
- module install fails in 3.7 due to symlink under spec HOT 2
- Plugin Repo onlyif test is broken HOT 1
- Unable to install ruby from https
- puppet-rbenv should support proxy usage
- document rbenv::bundle and rbenv::client
- Travis
- Module maintenance HOT 4
- Make it possible to pass --keep HOT 3
- Patch for ruby 1.9.3-p392
- Vagrant Provisioning Problems HOT 4
- Rbenv::Compile and Rbenv::Gem run every time HOT 2
- LICENSE? HOT 1
- Release to forge HOT 1
- Install from forge not working
- Set gem version HOT 2
- Periodically update ruby-build when new rubies are released HOT 1
- rbenv rehash after rbenv::gem ? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puppet-rbenv.