-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Binstubs installed into wrong directory #995
Comments
Closing. Merged #990 👍 |
@gauravtiwari I actually expected that PR to not be merged. The README for the project still references binstubs being available at |
Alright I see, going to take a closer look at this later today 👍 |
@gauravtiwari are the binstubs now being installed? |
@sadelokiki Yes it should, unless you have modified binstubs path, see: http://bundler.io/v1.10/bundle_binstubs.html |
Hey guys, so I am having the same issue as described above when running |
@gavargas22 What version of webpacker are you using? Please could you try latest master.
|
@gauravtiwari It seems that solved my issue, using the latest master. Thanks for your help! |
👍 Same issue when using In this particular case (and perhaps the others?) it wasn't that the stubs were installed in the wrong place so much as they were being looked for in the default location when installed elsewhere by bundler. |
I'm experiencing a similar problem to @monad-y in #990. The regression appears to be introduced in version 3.0.2 with #833. When running
bundle exec webpacker:install
for the first time, I'm getting a message likeeven when files do not exist at
./bin/webpack
or./bin/webpack-dev-server
under the Rails root.Here's a Dockerfile that demonstrates a repro
Build the image and run the container
If you get into the container, you'll find that no files were written to
/app/bin/webpack
or/app/bin/webpack-dev-server
, but instead executables are available at/usr/local/bundle/bin/webpack
and/usr/local/bundle/bin/webpack-dev-server
.In other words, the installation process creates executables alongside other gem executables (like
rails
andrake
), but the taskwebpacker:check_binstubs
seems to expect files in the./bin
subdirectory of the Rails root.If you modify the Dockerfile to install webpacker 3.0.1 instead of 3.0.2 (current latest), the binstubs are installed into the
./bin
subdirectory of the Rails root.I think the intent of #833 was to install the
webpack
andwebpack-dev-server
scripts in the./bin
subdirectory, not alongside other gem executables. If that's the case, then I think #990 should be closed in favor of a PR that fixes the place where the binstubs are installed.The text was updated successfully, but these errors were encountered: