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

Allow json comments #17

Closed
wants to merge 3 commits into from
Closed

Allow json comments #17

wants to merge 3 commits into from

Conversation

nikolai-laevskii
Copy link

@nikolai-laevskii nikolai-laevskii commented May 29, 2023

Description:
Changed parsing process of the global.json to use JSON5 library. This should make possible comments in global.json file. Initial approach was to refactor setup-dotnet.ts and pass global.json file directly to the install script instead of parsing it ourselves. However, bash install script doesn't parse JSON properly and throws an error when encounters completely valid JSON like this: {"sdk":{"version": "2.2.207","rollForward": "latestFeature"}}. Because of that we can't rely on install script to parse JSON and have to do it ourselves with third party library that supports comments in JSON files.

Related issue:
actions#411

Check list:

  • Mark if documentation changes are required.
  • Mark if tests were added or updated to cover the changes.

@nikolai-laevskii nikolai-laevskii marked this pull request as draft May 29, 2023 09:41
@nikolai-laevskii nikolai-laevskii force-pushed the allow-json-comments branch 3 times, most recently from 989ec09 to 42f91b0 Compare May 30, 2023 15:17
@nikolai-laevskii
Copy link
Author

actions#431

@nikolai-laevskii nikolai-laevskii deleted the allow-json-comments branch June 6, 2023 11:23
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