Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong type for Config in ProjectSettingsModel #366

Open
rosieks opened this issue Oct 25, 2024 · 0 comments
Open

Wrong type for Config in ProjectSettingsModel #366

rosieks opened this issue Oct 25, 2024 · 0 comments
Labels
kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team

Comments

@rosieks
Copy link

rosieks commented Oct 25, 2024

What happened?

There is wrong property type for Config in ProjectSettingsModel. Right now it's string while specfication assumets it's map.
That cause than when I try to use LocalWorkspace automation it crash on deserialization.

(Line: 5, Col: 3, Idx: 82) - (Line: 5, Col: 3, Idx: 82): Exception during deserialization

Example

Code that crashes:

var args = new LocalProgramArgs($"new-stack", pathToProject);
var stack = await LocalWorkspace.CreateOrSelectStackAsync(args);

Configuration Pulumi.yaml:

name: MyProject
runtime: dotnet
description: Persistence
config: 
  pulumi-disable-default-providers:
  - kubernetes
  some-setting: dev

Output of pulumi about

I'm using NuGet package Pulumi.Automation Version="3.67.1"

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

@rosieks rosieks added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team
Projects
None yet
Development

No branches or pull requests

1 participant