Skip to content

Fix phx.new.web generator referencing Ecto - #6808

Open
rhcarvalho wants to merge 1 commit into
phoenixframework:mainfrom
praialabs:fix-phx-new-web-defaults
Open

Fix phx.new.web generator referencing Ecto#6808
rhcarvalho wants to merge 1 commit into
phoenixframework:mainfrom
praialabs:fix-phx-new-web-defaults

Conversation

@rhcarvalho

Copy link
Copy Markdown
Contributor

The phx.new.web task is documented to create a bare Phoenix web project without database integration inside an umbrella. However, because it did not pass --no-ecto, it inherited the generator's default ecto: true setting, generating invalid references to a non-existent <App>.Repo and <App>.DataCase.

This passes --no-ecto by default when running phx.new.web.

Fixes #5690.
Closes #5691.

The `phx.new.web` task is documented to create a bare Phoenix web
project without database integration inside an umbrella. However,
because it did not pass `--no-ecto`, it inherited the generator's
default `ecto: true` setting, generating invalid references to a
non-existent `<App>.Repo` and `<App>.DataCase`.

This passes `--no-ecto` by default when running `phx.new.web`.
@rhcarvalho

Copy link
Copy Markdown
Contributor Author

Assisted by Google Antigravity CLI / Gemini 3.7 Flash.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Creating Umbrella Web App With phx.new.web Results in App That Cannot Be Compiled

1 participant