libyear-bundler icon indicating copy to clipboard operation
libyear-bundler copied to clipboard

`libyear-bundler`: command not found

Open francois opened this issue 1 year ago • 0 comments

Hmmm, I just installed and I get a command not found. Not sure what's up with that. This is in the context of a Rails application. Below, sl is Sapling SCM, a tool similar to Git.

╰─○ bundle add libyear-bundler --group development
Fetching gem metadata from https://rubygems.org/.......
Resolving dependencies...
Fetching gem metadata from https://rubygems.org/.......
Resolving dependencies...
Using rake 13.2.1
...
Using libyear-bundler 0.6.1
...
╰─○ sl diff
diff --git a/Gemfile b/Gemfile
--- a/Gemfile
+++ b/Gemfile
@@ -278,3 +278,5 @@

 # https://www.ruby-lang.org/en/news/2024/03/21/buffer-overread-cve-2024-27280/
 gem 'stringio', '>= 3.0.1.2'
+
+gem "libyear-bundler", "~> 0.6.1", :group => :development
diff --git a/Gemfile.lock b/Gemfile.lock
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -406,6 +406,8 @@
       activerecord
       kaminari-core (= 1.2.2)
     kaminari-core (1.2.2)
+    libyear-bundler (0.6.1)
+      bundler (>= 1.14, < 3)
     listen (3.7.1)
       rb-fsevent (~> 0.10, >= 0.10.3)
       rb-inotify (~> 0.9, >= 0.9.10)
@@ -879,6 +881,7 @@
   jbuilder (~> 2.7)
   jira-ruby (~> 2.3)
   jquery-raty-rails!
+  libyear-bundler (~> 0.6.1)
   listen (>= 3.3.0, < 4.0)
   mini_exiftool (~> 2.10)
   net-http

After installation:

╰─○ bundle exec libyear-bundler
bundler: command not found: libyear-bundler
Install missing gem executables with `bundle install`

Version info:

╰─○ ruby --version
ruby 3.2.4 (2024-04-23 revision af471c0e01) [arm64-darwin23]
╰─○ gem --version
3.4.19
╰─○ rails --version
Rails 6.1.7.6
╰─○ bundle --version
Bundler version 2.4.6

When I use bundle open libyear-bundler, I do see the executable under bin/.

francois avatar May 10 '24 17:05 francois