Rename record type to cache_record type to fix compilation on Erlang 29.0#433
Open
TBK145 wants to merge 1 commit into
Open
Rename record type to cache_record type to fix compilation on Erlang 29.0#433TBK145 wants to merge 1 commit into
TBK145 wants to merge 1 commit into
Conversation
…29.0 Erlang 29 (release candidate 1) doesn't allow built-in types (like record) to be redefined.
Author
|
I'm thinking now that I misinterpreted the issue, and it was already not allowed to redefine built-in types, but Erlang 29 ships with |
Owner
|
Hi @TBK145, thanks for reporting! I don't have spare time right now, but I can definitely look into this and make sure we fully understand what changed. Fortunately I'm planning a major version anyway, so the breaking change here won't matter as much. |
|
Hey, erlang/OTP 29 is now available, so it would be great to get this merged when you have time. |
fortmarek
added a commit
to tuist/tuist
that referenced
this pull request
Jun 2, 2026
… fix) Elixir 1.19 promoted `record/0` to a built-in type; cachex 4.0.4 + 4.1.1 both still ship their own `@type record :: ...`, which now fails the typespec compile pass and breaks every fresh `_build`. Pinning to TBK145/cachex@patch-1 (the open upstream PR #433) renames the internal type to `cache_record` and unblocks compilation today; revert to a hex release once the PR lands. Necessary follow-on bumps: `cachex 4.0.4 → 4.1.1`, `sleeplocks 1.1.3 → 1.1.4` (transitive). `override: true` because `posthog ~> 1.0` still pins the old cachex. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
fortmarek
added a commit
to tuist/tuist
that referenced
this pull request
Jun 2, 2026
…record/0 fix)" This reverts commit c18bac7.
fortmarek
added a commit
to tuist/tuist
that referenced
this pull request
Jun 2, 2026
… record/0 fix)" This reverts commit 35a2c51.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Erlang 29 (release candidate 1) doesn't allow built-in types (like record) to be redefined.
This leads to the following compilation error:
I renamed the type
recordtocache_recordto fix this.