cldwalker/boson — Issue #29: Boson::FileLibrary does not follow symbolic links
Author: logankoester
Created: 2011-11-04 05:11:14+00:00
State: open

With my 'common' libraries located in `~/.boson/commands/`

~>ls -la ~/.boson/commands/
total 12
drwxr-xr-x 3 ldk users 4096 Nov 4 00:55 .
drwxr-xr-x 4 ldk users 4096 Nov 3 23:47 ..
drwxr-xr-x 2 ldk users 4096 Nov 4 00:55 common
~>boson libraries
+----------------------+----------+------+--------------+
| name | commands | gems | library_type |
+----------------------+----------+------+--------------+
| core | 6 | | module |
| web_core | 5 | | module |
| common/print_methods | 1 | | file |
| common/eval_lines | 1 | | file |
| common/bashlike | 4 | | file |
| common/fast_reload | 3 | | file |
+----------------------+----------+------+--------------+

No problems there. But what if I move my libraries somewhere else, and use a symlink instead?

~>ls -la ~/.boson/commands/
total 8
drwxr-xr-x 2 ldk users 4096 Nov 4 00:59 .
drwxr-xr-x 4 ldk users 4096 Nov 3 23:47 ..
lrwxrwxrwx 1 ldk users 47 Nov 4 00:59 common -> /home/ldk/hack/oss/irbrc/boson/commands/common/
~>boson libraries
+----------------------+----------+------+--------------+
| name | commands | gems | library_type |
+----------------------+----------+------+--------------+
| core | 6 | | module |
| web_core | 5 | | module |
| common/print_methods | 1 | | file |
| common/eval_lines | 1 | | file |
| common/bashlike | 4 | | file |
| common/fast_reload | 3 | | file |
+----------------------+----------+------+--------------+
6 rows in set
~>irb
Unable to load library bashlike. Reason: Library bashlike not found.
Unable to load library fast_reload. Reason: Library fast_reload not found.
Unable to load library print_methods. Reason: Library print_methods not found.
Unable to load library eval_lines. Reason: Library eval_lines not found.
[hackworth::~>boson libraries
+----------+----------+------+--------------+
| name | commands | gems | library_type |
+----------+----------+------+--------------+
| core | 6 | | module |
| web_core | 5 | | module |
+----------+----------+------+--------------+

Not so fast! Would like to see this fixed sometime, as its a nice lightweight way to organize libraries that belong to other git repos, etc.