Skip to content

Allow json comments#431

Merged
nikolai-laevskii merged 3 commits intoactions:mainfrom
akv-platform:allow-json-comments
Jun 6, 2023
Merged

Allow json comments#431
nikolai-laevskii merged 3 commits intoactions:mainfrom
akv-platform:allow-json-comments

Conversation

@nikolai-laevskii
Copy link
Copy Markdown
Contributor

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:
#411

Check list:

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

@nikolai-laevskii nikolai-laevskii requested a review from a team as a code owner June 2, 2023 11:40
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