hello, when i run meltano install in root director...
# troubleshooting
s
hello, when i run meltano install in root directory of meltano project, I get Installed 0 plugins as response. this is meltano.yml version:
Copy code
version: 1
send_anonymous_usage_stats: false
project_id: tap-odoo
default_environment: staging
environments:
  - name: staging
    config:
      plugins:
        extractors:
        - name: tap-odoo
          namespace: tap_odoo
          pip_url: -e .
          capabilities:
          - state
          - catalog
          - discover
is there a syntax/yaml formatting issue? I just tried the same with the following file and it worked
Copy code
version: 1
send_anonymous_usage_stats: false
project_id: tap-odoo
default_environment: test
environments:
- name: test
  config:
    plugins:
      transformers:
      - name: dbt-bigquery
        config:
          auth_method: serice-account
          dataset: meltano_raw
          keyfile: ./.secrets/for_meltano_lyra_lab_analytics_jsonkey.json
          project: lyra-lab-analytics
plugins:
  extractors:
  - name: tap-odoo
    namespace: tap_odoo
    pip_url: -e .
    capabilities:
    - state
    - catalog
    - discover
    settings:
But then how do I configure the plugins per environment?
r
You can supply
config
per environment, but not the entire plugin definition.
s
So ideal way is to define the Plugins at a global level and then inherit from this global definition inside the environment? Or there any other best practice to do this?
r
Yeah, provide
config
for a plugin per environment and run with
meltano --environment <env>
(or omit for default environment).