-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove all API versions older than the V2 default version (#3917)
#3899 introduced a report of all API versions, per module, that are older than the lowest default version of that module in the previous major version. This PR takes that report for v2 -> v3 and merges it into v3-removed.json, to remove these old API versions. The size of the `sdk/` folder went from 3g to 1.4g on my machine. Applying oldApiVersions.json to v3-removed.json was done with a little program generated by Cursor: ```py import json # Load the JSON files with open('reports/oldApiVersions.json', 'r') as old_file: old_versions = json.load(old_file) with open('versions/v3-removed.json', 'r') as v3_file: v3_versions = json.load(v3_file) # Merge the dictionaries for key, versions in old_versions.items(): if key in v3_versions: # Merge and sort the version arrays v3_versions[key] = sorted(set(v3_versions[key] + versions)) else: # Add new key and versions v3_versions[key] = sorted(versions) # Write the merged dictionary back to v3-removed.json with open('v3-removed.json', 'w') as v3_file: json.dump(v3_versions, v3_file, indent=2) ```
- Loading branch information
Showing
7,482 changed files
with
21,093 additions
and
892,625 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
2,086 changes: 417 additions & 1,669 deletions
2,086
provider/cmd/pulumi-resource-azure-native/schema.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.