Skip to content

Resource invocation fails to read stateAndDiff from response #1419

Description

@JohnMcPMS

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

Summary

Invoking resource actions that return stateAndDiff fail to read the diff array.

Steps to reproduce

  1. Install latest preview build
  2. Run JSON | dsc.exe resource test -r YOUR/RESOURCE -f - where the resource returns stateAndDiff.

Sample response when invoking test resource directly:

{"_exist":false,"_inDesiredState":false,"path":"D:\\winget-cli\\src\\AppInstallerCLIE2ETests\\TestData\\Configuration\\ShowDetails_DSCv3.txt"}
["_exist"]

Expected behavior

Response is read.

Actual behavior

JSON: trailing characters at line 2 column 1

Error details

JSON: trailing characters at line 2 column 1

Environment data

> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.5.4
PSEdition                      Core
GitCommitId                    7.5.4
OS                             Microsoft Windows 10.0.28537
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Version

3.2.0-preview.12

Visuals

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions