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

vendor Jason to prevent conflicts #110

Closed
wants to merge 1 commit into from

Conversation

axelson
Copy link

@axelson axelson commented May 21, 2020

This prevents module conflicts with the user's version of Jason since both are loaded into the same beam instance (at least until #253) is addressed.

Functionally this was simply replacing :jason => :jason_vendored and Jason with JasonVendored. I only skipped the changelog (for no good reason) and the bench directory data.

Note: I plan to leave this PR open even though this branch is used by elixir-ls. I think that will facilitate seeing the changes as compared to the upstream Jason library. If we need to update to a new version of Jason the plan is to rebase this branch on top of the upstream changes (or just redo the changes).

This also formats the code which is another reason to just redo the changes.

This prevents module conflicts with the user's version of Jason since
both are loaded into the same beam instance (at least until #253) is
addressed.
@axelson
Copy link
Author

axelson commented May 22, 2020

Sorry, didn't mean to submit this PR here! Was meant to be directly against https://github.com/elixir-lsp/jason

@axelson axelson closed this May 22, 2020
@michalmuskala
Copy link
Owner

I think long-term it should be possible to do a small script doing the re-writing. I don't think there's any dynamic shenanigans in Jason that would make that difficult

@axelson
Copy link
Author

axelson commented May 23, 2020

Yeah, it was very straightforward. If I get sufficiently annoyed with staying up to date then I'll write a script :)

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.

2 participants