We have an implementation of "which" in puppet, and, IMO, it would make sense for both projects to share the same code and logic for this. However, our project structure doesn't currently lend itself to that.
If you do decide to implement a 'which', you might just copy the one from puppet. I'm not a big fan of the fact that the logic in those two copies of the same method may unintentionally diverge over time, but for now it'd probably be nice for the logic to be consistent between the two tools. On Thu, May 17, 2012 at 2:37 PM, Hailee Kenney <hai...@puppetlabs.com>wrote: > There seems to be a lot of Facter tickets that stem from a similar issue: > finding the correct executable. Here are just a few examples: > > https://projects.puppetlabs.com/issues/5013 > https://projects.puppetlabs.com/issues/13396 > https://projects.puppetlabs.com/issues/13678 > https://projects.puppetlabs.com/issues/14541 > > To me, these all seem related to how Facter is determining the path for > external executables. Since there have been a lot of problems around this > issue, it seems that something should be done about it, but it's not clear > what. There have been several proposed fixes on the various tickets. Rather > than dealing with these individual bugs, it would probably be good to come > up with a unified solution for the problem. I was just hoping to get some > opinions on if/how we should do something about this. > > Krzysztof Wilczynski has suggested implementing 'which' inside Facter. We > have some facts that hardcode the path to the executable. > > Thoughts? > > > Hailee Kenney > > Development Intern > > Puppet Labs, Inc. > > hai...@puppetlabs.com > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Developers" group. > To post to this group, send email to puppet-dev@googlegroups.com. > To unsubscribe from this group, send email to > puppet-dev+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-dev?hl=en. > -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to puppet-dev@googlegroups.com. To unsubscribe from this group, send email to puppet-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.