Skip to content

Conversation

@tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented Nov 14, 2024

The bin/rails script is solely used for local dev purposes. Since the default bindir from Rubygems is bin the binstub gets installed with the gems. This can cause issues with the rails command coming from rails itself.

Also removing the old script/rails files, which were excluded to solve the same issue.

The bin/rails script is solely used for local dev purposes.
Since the default bindir from Rubygems is bin the binstub
gets installed with the gems. This can cause issues with
the rails command comming from rails itself.

Also removing the old script/rails files, which were excluded
to solve the same issue.
@tvdeyen tvdeyen requested a review from a team as a code owner November 14, 2024 09:36
@github-actions github-actions bot added changelog:solidus_api Changes to the solidus_api gem changelog:solidus_backend Changes to the solidus_backend gem changelog:solidus_core Changes to the solidus_core gem changelog:solidus_admin labels Nov 14, 2024
@tvdeyen
Copy link
Member Author

tvdeyen commented Nov 14, 2024

Excerpt from current solidus_legacy_promotions gem metadata file

--- !ruby/object:Gem::Specification
name: solidus_legacy_promotions
[...]
bindir: bin
[...]
files:
[..]
- bin/rails
[...]

which reveals that bindir is bin and bin/rails is included

@tvdeyen tvdeyen changed the title Remove rails binstub from built gems Remove rails binstubs from built gems Nov 14, 2024
@codecov
Copy link

codecov bot commented Nov 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.54%. Comparing base (b1a3796) to head (dde8966).
Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5917   +/-   ##
=======================================
  Coverage   89.54%   89.54%           
=======================================
  Files         783      783           
  Lines       17994    17994           
=======================================
  Hits        16113    16113           
  Misses       1881     1881           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tvdeyen tvdeyen merged commit 8ff6267 into solidusio:main Nov 14, 2024
16 checks passed
@tvdeyen tvdeyen deleted the remove-rails-bin-from-gems branch November 14, 2024 15:44
@tvdeyen tvdeyen added the backport-v4.4 Backport this pull-request to v4.4 label Nov 14, 2024
@github-actions
Copy link

💚 All backports created successfully

Status Branch Result
v4.4

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-v4.4 Backport this pull-request to v4.4 changelog:solidus_admin changelog:solidus_api Changes to the solidus_api gem changelog:solidus_backend Changes to the solidus_backend gem changelog:solidus_core Changes to the solidus_core gem

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants