Skip to content
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

Fix minor sandbox generation issues #5618

Merged

Conversation

spaghetticode
Copy link
Member

@spaghetticode spaghetticode commented Jan 24, 2024

Summary

This PR intends to fix a couple of minor issues when generating the sandbox app. See commits for more details.

Checklist

Check out our PR guidelines for more details.

The following are mandatory for all PRs:

The following are not always needed:

  • 📖 I have updated the README to account for my changes.
  • 📑 I have documented new code with YARD.
  • 🛣️ I have opened a PR to update the guides.
  • ✅ I have added automated tests to cover my changes.
  • 📸 I have attached screenshots to demo visual changes.

This prevent the following error when the `.gitignore` file is
not present, for example when creating sandbox app:

  Rails::Generators::Error: The template [/path/to/solidus/admin/lib/solidus_admin/install_tailwindcss.rb] could not be loaded.
  Error: The file /path/to/solidus/sandbox/.gitignore does not appear to exist (Rails::Generators::Error)

  Caused by:
  Thor::Error: The file /path/to/solidus/sandbox/.gitignore does not appear to exist (Thor::Error)
This avoids errors when running the installer on apps that already
include that gem, for example when creating the sandbox.
@spaghetticode spaghetticode self-assigned this Jan 24, 2024
@spaghetticode spaghetticode requested a review from a team as a code owner January 24, 2024 09:24
@github-actions github-actions bot added changelog:solidus_core Changes to the solidus_core gem changelog:solidus_admin labels Jan 24, 2024
@spaghetticode spaghetticode merged commit 4b46992 into solidusio:main Jan 24, 2024
12 checks passed
@spaghetticode spaghetticode deleted the spaghetticode/fix-sandbox-issues branch January 24, 2024 13:57
@spaghetticode spaghetticode added the backport-v4.3 Backport this pull-request to v4.3 label Feb 29, 2024
Copy link

💚 All backports created successfully

Status Branch Result
v4.3

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.3 Backport this pull-request to v4.3 changelog:solidus_admin changelog:solidus_core Changes to the solidus_core gem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants