Skip to content

fix: repair CI build with ameba 1.7 - #46

Merged
veelenga merged 2 commits into
masterfrom
fix/ameba-build
Aug 9, 2026
Merged

fix: repair CI build with ameba 1.7#46
veelenga merged 2 commits into
masterfrom
fix/ameba-build

Conversation

@veelenga

@veelenga veelenga commented Aug 9, 2026

Copy link
Copy Markdown
Owner

Overview

  • bump ameba dev dependency to 1.7.0-dev — 1.6.4 no longer compiles with latest Crystal (next_string_array_token was removed from Crystal::Lexer)
  • update the CI linter step to crystal run bin/ameba.cr, since ameba 1.7 ships an entry script instead of a postinstall-built binary
  • autocorrect new-rule offenses (percent literal delimiters, macro expression whitespace, be_true/be_nil spec expectations, redundant self)
  • disable Style/MultilineStringLiteral%q(...) literals are intentional for embedded Lua snippets

@veelenga veelenga self-assigned this Aug 9, 2026
Ameba 1.6.4 fails to compile with recent Crystal (next_string_array_token
was removed from Crystal::Lexer). The 1.7 line drops the postinstall
binary in favor of the lib/ameba/bin/ameba.cr entry script, so the CI
linter step now compiles and runs it via crystal.
Autocorrected new-rule offenses (percent literal delimiters, macro
expression whitespace, be_true/be_false/be_nil spec expectations,
redundant self) and disabled Style/MultilineStringLiteral, since
%q(...) literals are used intentionally for embedded Lua snippets.
@veelenga
veelenga merged commit f1af920 into master Aug 9, 2026
1 check passed
@veelenga
veelenga deleted the fix/ameba-build branch August 9, 2026 08:47
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.

1 participant