Update ameba dependency#1394
Draft
botantony wants to merge 1 commit into
Draft
Conversation
With the latest Crystal update to 1.21.0 the project fails to build
`ameba` dependency. Here's the error that happens after running
`shards install`:
```
Failed postinstall of ameba on shards build -Dpreview_mt:
I: Dependencies are satisfied
I: Building: ameba
E: Error target ameba failed to compile:
The 'preview_mt' flag is deprecated. Resize the default execution context, or start additional contexts instead.
In src/ameba/rule/base.cr:117:34
117 | source.add_issue(self, {{ *args }}, {{ **kwargs }}) {{ block }}
^
Warning: Deprecated use of splat operator. Use `#splat` instead
In src/ameba/rule/base.cr:117:48
117 | source.add_issue(self, {{ *args }}, {{ **kwargs }}) {{ block }}
^
Warning: Deprecated use of double splat operator. Use `#double_splat` instead
A total of 3 warnings were found.
Showing last frame. Use --error-trace for full trace.
In src/ameba/tokenizer.cr:88:15
88 | lexer.next_string_array_token
^----------------------
Error: undefined method 'next_string_array_token' for Crystal::Lexer (compile-time type is Crystal::Lexer+)
```
This was fixed by the upstream but there's no tagged release
with the patch yet, so switching to `master` branch
References:
- crystal-ameba/ameba#823
- Homebrew/homebrew-core#293531
Signed-off-by: botantony <antonsm21@gmail.com>
botantony
force-pushed
the
update-ameba-dep
branch
from
July 18, 2026 01:16
86f5efc to
ac7c9c3
Compare
botantony
marked this pull request as draft
July 18, 2026 01:19
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.
Description of the Change
With the latest Crystal update to 1.21.0 the project fails to build
amebadependency. Here's the error that happens after runningshards install:This was fixed by the upstream but there's no tagged release with the patch yet, so switching to
masterbranchBenefits
Latest stable compiler support
Possible Drawbacks
The dependency is not pinned
References