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

Can't override existing passes? #223

Open
Etheroit opened this issue Aug 11, 2024 · 2 comments
Open

Can't override existing passes? #223

Etheroit opened this issue Aug 11, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Etheroit
Copy link
Contributor

Describe the bug
I've been trying to override the settings of a pass but either I am doing something wrong or something isn't working correctly but I'd suspect the second as the config seems to be compliant with the api reference.

Everything works properly if environments[0].targetOverrides.passes is removed from the below config.

My shortened config:

...
environments:
  - label: dev
    targetNamePrefix: environmentLabel
    targetOverrides:
      places:
        start:
          configuration:
            description: |-
              (the new description here)
      passes:
        testPass:
          name: '(other name here)'
          description: '(other description here)'
          price: 1
...

target:
  experience:
...(other config here including but not limited to the places)
    passes:
      testPass:
        name: (name here)
        description: (description here)
        icon: assets/tools/testimage.png
...

Expected behavior
I would expect the targetOverrides to change the 'testPass' name, description and also set price to 1 in certain environment. Instead I am seeing an error:

Unable to parse config file ./mantle.yml
	environments[0]: data did not match any variant of untagged enum TargetOverridesConfig at line 9 column 10
@Etheroit Etheroit added the bug Something isn't working label Aug 11, 2024
@Etheroit
Copy link
Contributor Author

@blake-mealey Sorry to ping but would you have any idea why this could happen?

@Etheroit
Copy link
Contributor Author

@blake-mealey Small bump, would you have any idea why this issue happens? Am I missing something?

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

1 participant