| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Two unrelated maintenance changes: 1. Fix redundant execute_ddl/1 clauses in connection.ex The file had two duplicate sets of execute_ddl/1 clauses: a newer set (with @impl true markers) and an older set of duplicates. The newer Ecto type system flags the duplicates as redundant warnings that fail the build with --warnings-as-errors. Remove the older duplicate clauses, keeping the first (correct) set intact. Also remove one redundant {:drop_if_exists, %Index{concurrently: true}} clause that is fully covered by the wildcard {:_, %Index{concurrently: true}} clause which raises the same ArgumentError. Preserves the original non-duplicate clauses for Constraint and Index rename operations that only existed in the second set. 2. Update CI matrix to Elixir 1.18-1.20 / OTP 27-29 Per the official Elixir/OTP compatibility table (June 2026): - Elixir 1.20: OTP 27-29 (latest) - Elixir 1.19: OTP 26-28 - Elixir 1.18: OTP 25-27 Drops Elixir 1.17 and OTP 26 (both EOL), adds Elixir 1.20 and OTP 29 (latest). Excludes 3 combinations that fall outside the official support ranges. Lint job runs on the latest (1.20+29). 6 valid combinations remain, all within official support ranges.
|
Hey I appreciate the PR pointing this out. I had to walk this change in myself to validate implementation. I'm working on getting exqlite upgraded as well. Will cut a new release soon. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary
Two unrelated maintenance changes bundled together:
1. Fix redundant execute_ddl/1 clauses
mix compile --warnings-as-errors was failing with 11 "redundant clause" warnings, all in lib/ecto/adapters/sqlite3/connection.ex. The file had two duplicate sets of execute_ddl/1 clauses: a newer set (with @impl true markers) and an older set of duplicates.
With the recent Ecto upgrade (commit e408901, "Upgrade ecto_sql and bump version"), the upstream type system became smarter and started flagging the duplicate clauses as redundant. Since CI uses --warnings-as-errors, the build was broken.
Removed 11 duplicate clauses (~100 lines), keeping the first (correct) set intact. Also removed one additional redundant {:drop_if_exists, %Index{concurrently: true}} clause that is fully covered by the wildcard {:_, %Index{concurrently: true}} clause (which raises the same ArgumentError).
The original non-duplicate clauses for Constraint operations and Index rename are preserved.
2. Update CI matrix to Elixir 1.18-1.20 / OTP 27-29
Per the official Elixir/OTP compatibility table (June 2026):
Drops Elixir 1.17 and OTP 26 (both EOL), adds Elixir 1.20 and OTP 29 (latest). 6 valid combinations remain, all within the official support ranges.
Verification