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

Restore the "classic world" background for friend challenge #1566

Merged
merged 2 commits into from
Oct 7, 2023

Conversation

byorgey
Copy link
Member

@byorgey byorgey commented Oct 3, 2023

This was broken by #1376. Any challenge which did not specify a default field would have had the classic world as an implicit background, but in this case I failed to add the proper dsl field to specify it. I don't think there are any other such challenge scenarios, although to be really sure we would have to identify all the scenarios did not specify a default field before #1376 was merged and ensure that each of them now has an appropriate dsl field.

Before:

before

After:

after

This was broken by #1376.  Any challenge which did *not* specify a
`default` field would have had the classic world as an implicit
background, but I failed to add the proper `dsl` field to specify it.
@byorgey byorgey requested review from kostmo and xsebek October 3, 2023 17:52
Copy link
Member

@xsebek xsebek left a comment

Choose a reason for hiding this comment

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

Before #1376, these scenarios did not have default specified:

git checkout 888ee44~1
cd data/scenarios
find -name '*.yaml' -exec echo -n {} "  " \; -exec yq '.world.default' {} \; | grep '  null'
# ./classic.yaml   null
# ./Challenges/gopher.yaml   null
# ./Challenges/friend.yaml   null
# ./creative.yaml   null
# ./Tutorials/world101.yaml   null
# ./Tutorials/backstory.yaml   null
# ./Tutorials/farming.yaml   null
# ./Speedruns/forester.yaml   null
# ./Speedruns/curry.yaml   null
# ./Speedruns/mithril.yaml   null

It looks like only gopher and friend are missing a DSL now.

@byorgey byorgey added the merge me Trigger the merge process of the Pull request. label Oct 7, 2023
@mergify mergify bot merged commit 11053c4 into main Oct 7, 2023
10 checks passed
@mergify mergify bot deleted the fix/cat-background branch October 7, 2023 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge me Trigger the merge process of the Pull request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants