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

YAML cache: do not cache documents containing tags #351

Merged
merged 1 commit into from Mar 22, 2021
Merged

Conversation

casperisfine
Copy link
Contributor

Psych behavior is a bit weird, when it encounter a tag it doesn't know about, it just ignores it, e.g.:

>> YAML.load('[!many Boolean]')
=> ["Boolean"]

So if an app do end up defining custom tags, the YAML pre-compilation might cache an incorrect version of the document.

@casperisfine casperisfine merged commit 91beaa6 into master Mar 22, 2021
@casperisfine casperisfine deleted the psych-tags branch March 22, 2021 08:41
@shopify-shipit shopify-shipit bot temporarily deployed to rubygems March 22, 2021 08:44 Inactive
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.

None yet

3 participants