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

Parsing struct via arguments is broken #2312

Open
tedim52 opened this issue Mar 15, 2024 · 1 comment
Open

Parsing struct via arguments is broken #2312

tedim52 opened this issue Mar 15, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@tedim52
Copy link
Contributor

tedim52 commented Mar 15, 2024

What's your CLI version?

0.88.7

Description & steps to reproduce

Running kurtosis run main.star '{"some_parameter": {"_kurtosis_parser": "struct", "some_property": "Property value"}}'
against

def run(plan, some_parameter=struct(some_property = "Property Value")):
	plan.print(some_parameter)
	plan.print(some_parameter.some_property)

Outputs:

There was an error interpreting Starlark code
Evaluation error: dict has no .some_property field or method
	at [3:27]: run

Error encountered running Starlark code.

meaning some_parameter is not getting parsed as a struct as describe here: https://docs.kurtosis.com/run/#arguments

Desired behavior

structs are parsed via arguments for --args-file in yaml and json as well.

What is the severity of this bug?

Critical; I am blocked and Kurtosis is unusable for me because of this bug.

What area of the product does this pertain to?

CLI: the Command Line Interface

@tedim52 tedim52 added the bug Something isn't working label Mar 15, 2024
@h4ck3rk3y
Copy link
Contributor

I wonder if we can just deprecate this flow completely? Who uses this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants