Skip to content

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.

Co-authored-by: Orien Madgwick <497874+orien@users.noreply.github.com>
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.

5 participants