<#2651 Fail when plugin `pip_url` changed and inst...
# meltano-repo-activity
g
#2651 Fail when plugin
pip_url
changed and installation is outdated (pip_url drift)
Issue created by MeltyBot Migrated from GitLab: https://gitlab.com/meltano/meltano/-/issues/2701 Originally created by @ghorwitchsmith on 2021-04-12 155529 --- Problem to solve I installed Meltano with tap-mysql and target-postgres. After creating some pipelines I realised that for a data set I needed to track deletions and this would require the transferwise variant. I switched the variant in the meltano.yml, but then spent a whilst trying to work out why it was not creating _sdc_deleted_at columns in postgres. This is partially as I'm new, however the solution was to reinstall target-postgres with the transferwise variant. Everything then just worked, as you'd expect! Proposal It would really help (newer) users if the configuration validated the variant installed when it tried to run them. What does success look like, and how can we measure that? If the installed variant of a tap or a target does not match the variant in the meltano.yml then an error or warning should be shown. Proposed spec (added 2022-03-03) 1. During install we drop a marker file into the root of the venv with text of the
pip_url
used during installation. (Or a hash, if we think the pip_url is sensitive.) • E.g.
.meltano/.../dbt/meltano_pip_url_marker.txt
2. During execution we check the marker file against the current
pip_url
value. 3. If the comparison fails, we either warn or throw a hard failure before executing the plugin. meltano/meltano