pulumi/pkg/backend
Aaron Friel c2e41beff2
Fix rendering of output events in rendering update diffs (#17029)
This fixes a bug found while working on another internal issue. This bug
is reproduced in the first commit which adds tests, clearly showing the
behavior of the incoherent rendering. The second commit makes the change
and updates the tests.

Fixes #17028

Fixes all outputs being printed adjacent without context, as seen in the
linked issue and the first commit:

```
    --outputs:--
    readme: "line 1\nline2\nline3\nline4"
        --outputs:--
        arn                : "arn:aws:iam::616138583583:role/eks-role-24b1266"
        assumeRolePolicy   : (json) {
            Statement: [
                [0]: {
                    Action   : "sts:AssumeRole"
                    Effect   : "Allow"
                    Principal: {
                        Service: "eks.amazonaws.com"
                    }
                    Sid      : ""
                }
            ]
            Version  : "2008-10-17"
        }

        createDate         : "2022-02-09T23:14:50Z"
        id                 : "eks-role-24b1266"
        inlinePolicies     : [
            [0]: {
                name  : ""
                policy: ""
            }
        ]
        managedPolicyArns  : [
            [0]: "arn:aws:iam::aws:policy/AmazonEKSClusterPolicy"
            [1]: "arn:aws:iam::aws:policy/AmazonEKSServicePolicy"
        ]
        uniqueId           : "AROAY65FYVYPWXZQUXMBX"
        --outputs:--
        id       : "eks-role-24b1266-20220209231452499500000001"
        --outputs:--
        id       : "eks-role-24b1266-20220209231452597100000002"
        --outputs:--
```
2024-08-27 18:37:03 +00:00
..
display Fix rendering of output events in rendering update diffs (#17029) 2024-08-27 18:37:03 +00:00
diy Replace `result.Result` with native errors (#17044) 2024-08-22 14:39:59 +00:00
filestate Rename filestate to DIY (#15314) 2024-01-30 15:53:10 +00:00
httpstate Replace `result.Result` with native errors (#17044) 2024-08-22 14:39:59 +00:00
state [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
apply.go Fix rendering of output events in rendering update diffs (#17029) 2024-08-27 18:37:03 +00:00
apply_test.go Make `engine.NewEvent` type safe (#14590) 2023-11-16 16:54:03 +00:00
backend.go Replace `result.Result` with native errors (#17044) 2024-08-22 14:39:59 +00:00
backend_test.go Allow anything in resource names (#14107) 2023-11-20 08:59:00 +00:00
cancellation_scope.go Make `engine.NewEvent` type safe (#14590) 2023-11-16 16:54:03 +00:00
doc.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
errors.go Clean up uses of .Error() (#14965) 2023-12-20 15:54:06 +00:00
inmemoryPersister.go Revert "Revert "Run integration tests and dev builds with race detection" (#15998)" (#16148) 2024-05-09 16:15:41 +00:00
mock.go Replace `result.Result` with native errors (#17044) 2024-08-22 14:39:59 +00:00
policypack.go Replace `result.Result` with native errors (#17044) 2024-08-22 14:39:59 +00:00
query.go Rename filestate to DIY (#15314) 2024-01-30 15:53:10 +00:00
snapshot.go [snapshot] Elide writes for RRO with no changes (#15976) 2024-04-18 22:09:08 +00:00
snapshot_test.go Remove `Step.Apply`'s `preview` parameter (#16367) 2024-06-14 10:19:13 +00:00
stack.go Replace `result.Result` with native errors (#17044) 2024-08-22 14:39:59 +00:00
updates.go [cli] Include config from ESC in `pulumi config` (#14560) 2023-11-21 10:44:45 +00:00
watch.go Replace `result.Result` with native errors (#17044) 2024-08-22 14:39:59 +00:00