-
-
Notifications
You must be signed in to change notification settings - Fork 662
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(gpd): add overlay support for gopackagesdriver (#4101)
- Introduced the ability to handle in-memory overlays via map[string][]byte in gopackagesdriver, allowing files to be dynamically provided as overlays during package resolution. - Updated ResolveImports to accept overlays and apply them when parsing Go files. - Modified tests to include new overlay functionality, ensuring correct import resolution for files supplied via overlay maps. - Refactored runForTest function to support DriverRequestJson input, making it more flexible for testing overlays. - Applied overlays in both the JSONPackagesDriver and PackageRegistry, providing seamless integration with existing workflows. This feature enhances package resolution by supporting temporary or unsaved files, making it useful for IDEs, linters, and test scenarios where in-memory file content is needed. **What type of PR is this?** Feature **What does this PR do? Why is it needed?** Implements the overlay function specified in the gopackagesdriver DriverRequest **Which issues(s) does this PR fix?** Fixes #4100
- Loading branch information
Showing
7 changed files
with
149 additions
and
35 deletions.
There are no files selected for viewing
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
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
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
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