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
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