Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Mar 18, 2024

Conversation

casperisfine
Copy link

@casperisfine casperisfine commented Mar 15, 2024

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
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
Copy link
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.

Copy link
Member

@soutaro soutaro left a comment

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
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants