bug: meltano.yml updates overwrite user-changed indentation
See original GitHub issueMeltano Version
2.10.0
Python Version
3.9
Bug scope
Other
Operating System
Mac OS 12.6 Monterey
Description
Steps to replicate:
- Run
meltano init test
cat test/meltano.yml
output:
cat test/meltano.yml
version: 1
default_environment: dev
project_id: b02272c0-d17d-4512-ab23-47ed7c9133ad
environments:
- name: dev
- name: staging
- name: prod
- Format YAML indentation differently:
version: 1
default_environment: dev
project_id: b02272c0-d17d-4512-ab23-47ed7c9133ad
environments:
- name: dev
- name: staging
- name: prod
- Run a
meltano
CLI command that updatesmeltano.yml
file. In my case I ranmeltano add loader target-jsonl
. - Notice the leading indentation of the
environments
array members inmeltano.yml
has reverted from two spaces to zero:
version: 1
default_environment: dev
project_id: b02272c0-d17d-4512-ab23-47ed7c9133ad
environments:
- name: dev
- name: staging
- name: prod
plugins:
loaders:
- name: target-jsonl
variant: andyh1203
pip_url: target-jsonl
Code
n/a
Issue Analytics
- State:
- Created 9 months ago
- Comments:5
Top Results From Across the Web
Issues · meltano/meltano
bug: meltano.yml updates overwrite user-changed indentation Accepting Pull Requests kind/Bug Something isn't working valuestream/Meltano.
Read more >Settings
Meltano supports a number of settings that allow you to fine tune its behavior, which are documented here.To quickly find the setting you're...
Read more >Complete Tutorial
Since YAML is a superset of JSON, the object should be indented correctly, but formatting does not need to be changed. The simplest...
Read more >Manage Configuration
Your meltano.yml project file, under the plugin's config key. ... Starting with Meltano 2.0 , you can override the properties of discoverable plugins, ......
Read more >Command Line
Meltano provides a command line interface (CLI) that makes it easy to manage ... This flag overwrites any existing meltano.yml in the project...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@aaronsteers Agreed on that!
I like that as well. Let’s consider that a reasonable approach that we’ll accept PRs on but not prioritize ourselves cc @menzenski
Thanks all - I’m new to Meltano but happy to work on a PR for this. Is there any existing convention around project configuration (as opposed to plugin configuration) I should be aware of?