Skip to content

Make the test suite compatible with --enable-frozen-string-literal - #1767

Merged
soutaro merged 1 commit into
ruby:masterfrom
casperisfine:enable-frozen-string-literal
Mar 18, 2024
Merged

soutaro merged 1 commit into
ruby:masterfrom
casperisfine:enable-frozen-string-literal

Conversation

@casperisfine

@casperisfine casperisfine commented Mar 15, 2024 •

Copy link
Copy Markdown

Ref: https://bugs.ruby-lang.org/issues/20205
Ref: voxpupuli/json-schema#508

Since rbs is tested as part of ruby-core CI, it needs to be compatible with the --enable-frozen-string-literal option.

NB: The json-schema fix was merged, but not sure when it will be released. I don't know if using a git gem is a blocker?

@@ -1,3 +1,4 @@
# frozen_string_literal: false

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Lots of tested methods mutate the string, so it's simpler to globally use mutable strings in this file.

Ref: https://bugs.ruby-lang.org/issues/20205
Ref: voxpupuli/json-schema#508

Since `rbs` is tested as part of ruby-core CI, it needs to be compatible
with the `--enable-frozen-string-literal` option.
@casperisfine
casperisfine force-pushed the enable-frozen-string-literal branch from 42c5f9e to 9fb3f79 Compare March 15, 2024 09:21
@casperisfine

Copy link
Copy Markdown
Author

The json-schema fix was merged, but not sure when it will be released

It just got released 🎉 . So I update the PR to no longer use a git gem.

@soutaro soutaro 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.

Thanks!

@soutaro
soutaro added this pull request to the merge queue Mar 18, 2024
@soutaro soutaro added this to the RBS 3.5 milestone Mar 18, 2024
Merged via the queue into ruby:master with commit 2ce544a Mar 18, 2024
@soutaro soutaro added the Released PRs already included in the released version label Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Released PRs already included in the released version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants