dean_morin
09/04/2024, 12:17 AMv2
to v3
.
My meltano.yml
looks like:
version: 1
plugins:
extractors:
- name: tap-postgres
variant: meltanolabs
pip_url: git+<https://github.com/MeltanoLabs/tap-postgres.git>
- name: tap-postgres-transferwise
inherit_from: tap-postgres
variant: transferwise
pip_url: pipelinewise-tap-postgres
In v2 everything works fine:
$ poetry add meltano@2.20.0 --extras psycopg2
$ poetry run meltano install
Installing 2 plugins...
Skipped installing extractor 'tap-postgres-transferwise'...
Installing extractor 'tap-postgres'...
Installed extractor 'tap-postgres'
Installed 1/2 plugins
Skipped installing 1/2 plugins
In v3 I get an error:
$ poetry add meltano@3.0.0 --extras psycopg2
$ poetry run meltano install
Extractor 'tap-postgres' is not known to Meltano. Try running `meltano lock --update --all` to ensure your plugins are up to date.
(running the meltano lock command does not help)dean_morin
09/04/2024, 12:43 AMdean_morin
09/04/2024, 12:44 AMplugins:
extractors:
- name: tap-postgres--meltanolabs
inherit_from: tap-postgres
variant: meltanolabs
pip_url: git+<https://github.com/MeltanoLabs/tap-postgres.git>
- name: tap-postgres--transferwise
inherit_from: tap-postgres
variant: transferwise
pip_url: pipelinewise-tap-postgres
Edgar RamÃrez (Arch.dev)
09/04/2024, 12:54 AMdiscovery.yml
was removed in 3.0, Meltano needs the plugin to be added to the project before in can be inherited. I think we need to revisit https://github.com/meltano/meltano/issues/6731, come up with and document guidelines both new and migrating users.
Let me get a repro project set up to see if this can be worked around with some set of manual steps.dean_morin
09/04/2024, 12:55 AMdean_morin
09/04/2024, 1:00 AMdean_morin
09/04/2024, 1:06 AMtransferwise
to meltanolabs
variant. I have a lot of postgres taps, and I want to start with some of the less important ones (so that we can see what differences there are and how we want to deal with them).
The idea was to have one tap-postgres
that everything inherits from so that that I can set global secrets (e.g. the meltano metadata db uri) via a single environment variable that all of the other taps will inherit from.visch
09/04/2024, 1:45 PMvisch
09/04/2024, 1:46 PM