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

Use sorted_set gem instead of relying on it existing in ruby's set library #374

Merged
merged 4 commits into from
Aug 2, 2023

Conversation

petervandoros
Copy link
Contributor

@petervandoros petervandoros commented Jul 28, 2023

Resolves the following error:

StackMaster::TemplateCompiler::TemplateCompilationFailed Failed to compile a_stack_template.rb
 Caused by: RuntimeError The `SortedSet` class has been extracted from the `set` library. You must use the `sorted_set` gem or other alternatives.

In ruby 3.1, the SortedSet class was removed from the set library.

The sparkle_formation gem has resolved this issue, but has yet to release a new version of the gem.

This commit works around the issue by ensuring the SortedSet class in the sorted_set gem is used by the sparkle_formation gem.

…library

Resolves the following error:

StackMaster::TemplateCompiler::TemplateCompilationFailed Failed to compile a_stack_template.rb
 Caused by: RuntimeError The `SortedSet` class has been extracted from the `set` library. You must use the `sorted_set` gem or other alternatives.

In ruby 3.1, the SortedSet class was removed from the `set` library.

The sparkle_formation gem has resolved this issue, but has yet to release a
new version of the gem.

This commit works around the issue by ensuring the SortedSet class in the
`sorted_set` gem is used by the sparkle_formation gem.
Copy link
Member

@orien orien left a comment

Choose a reason for hiding this comment

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

I hesitated to do this because the problem is not in StackMaster, and only impacts projects using SparkleFormation.

But this is the pragmatic approach. And it's the solution we'll eventually get from SparkleFormation anyway.

CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Contributor

@simpson-ross simpson-ross left a comment

Choose a reason for hiding this comment

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

Thanks @petervandoros!

@petervandoros petervandoros merged commit c5c14da into master Aug 2, 2023
@petervandoros petervandoros deleted the pv/sorted-set branch August 2, 2023 01:54
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.

4 participants