mirror of https://github.com/pulumi/pulumi.git
![]() Fixes: #18610 This pull request includes several enhancements to the Go SDK, specifically adding new options for importing resources and improving test coverage. The most important changes are summarized below: ### New Import Options: * Added a new option `PreviewOnly` to allow previewing the import without executing it. (`sdk/go/auto/optimport/optimport.go`) * Introduced `ImportFile` option to specify the file from which to import resources. (`sdk/go/auto/optimport/optimport.go`) ### Updates to ImportResources Function: * Modified `ImportResources` function to handle `PreviewOnly` and `ImportFile` options. (`sdk/go/auto/stack.go`) [[1]](diffhunk://#diff-033162b77df0df934fbf08c531cea9cd417f28e252ff84596651424e1606af74L509-R515) [[2]](diffhunk://#diff-033162b77df0df934fbf08c531cea9cd417f28e252ff84596651424e1606af74R539-R542) ### Test Enhancements: * Added a new test case `TestImportResources` to verify the import functionality, including the new options. (`sdk/go/auto/stack_test.go`) ### Documentation: * Updated changelog to include the new `PreviewOnly` feature for the Go SDK. (`changelog/pending/20250214--sdk-go-import-preview-onlyyaml`) --------- Co-authored-by: Thomas Gummerer <t.gummerer@gmail.com> |
||
---|---|---|
.. | ||
optimport.go |