Skip to content

crystal 1.21.0#293531

Merged
BrewTestBot merged 2 commits into
mainfrom
bump-crystal-1.21.0
Jul 19, 2026
Merged

crystal 1.21.0#293531
BrewTestBot merged 2 commits into
mainfrom
bump-crystal-1.21.0

Conversation

@BrewTestBot

@BrewTestBot BrewTestBot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Created by brew bump


Created with brew bump-formula-pr.

  • resource blocks have been checked for updates.

@github-actions github-actions Bot added the bump-formula-pr PR was created using `brew bump-formula-pr` label Jul 16, 2026
@daeho-ro
daeho-ro force-pushed the bump-crystal-1.21.0 branch from 6fcbf9a to d1b2a06 Compare July 16, 2026 15:41
@straight-shoota

straight-shoota commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

The failure comes from amber, which builds an old and incompatible version of ameba as dependency for no reason.
Amber itself hasn't seen a new release in three years.

Not sure what the homebrew policy is for this kind of thing, but it's a pity that a useless incompatibility blocks upgrading the crystal package.

A patch could be upgrading the ameba dependency to latest master, or skipping to build ameba in amber setup. It's a development dependency and completely useless when only installing the package.

botantony added a commit to botantony/amber that referenced this pull request Jul 18, 2026
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>
@carlocab carlocab added the CI-no-fail-fast-deps Continue dependent tests despite failing GitHub Actions matrix tests. label Jul 18, 2026

@carlocab carlocab left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can ignore the amber failure for now and fix/deprecate it separately.

@github-actions

Copy link
Copy Markdown
Contributor

:shipit: @carlocab has requested bottles to be published to this PR.

Caution

Please do not push to this PR branch before the bottle commits have been pushed, as this results in a state that is difficult to recover from. If you need to resolve a merge conflict, please use a merge commit. Do not force-push to this PR branch.

@github-actions github-actions Bot added the CI-published-bottle-commits The commits for the built bottles have been pushed to the PR branch. label Jul 19, 2026
@BrewTestBot
BrewTestBot enabled auto-merge July 19, 2026 09:38
@BrewTestBot
BrewTestBot added this pull request to the merge queue Jul 19, 2026
Merged via the queue into main with commit d569970 Jul 19, 2026
22 checks passed
@BrewTestBot
BrewTestBot deleted the bump-crystal-1.21.0 branch July 19, 2026 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bump-formula-pr PR was created using `brew bump-formula-pr` CI-no-fail-fast-deps Continue dependent tests despite failing GitHub Actions matrix tests. CI-published-bottle-commits The commits for the built bottles have been pushed to the PR branch.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants