Hello. I have been using tap-facebook by MeltanoLa...
# getting-started
a
Hello. I have been using tap-facebook by MeltanoLabs, but I wanted to play around with it and modify it myself. So, I cloned the MeltanoLabs repo into one of my own on Github, and have been able to try out changes that I make. The problem is that I keep having to commit, push and then
meltano install extractor --clean tap-facebook
every time I make a change in order to see the changes in action (when I run the tap). I was wondering if there is a way to change this temporarily so that tap-facebook uses local tap code rather than what it finds at the
pip_url
in
meltano.yml
. Any support would be appreciated!
u
@ameya_agrawal the meltano.yml that comes with the SDK cookiecutter has a good example of using a local path as a pip_url see https://github.com/meltano/sdk/blob/d81c3f74a544f377cdc511f627ac1a31592b9500/cooki[…]cutter/tap-template/%7B%7Bcookiecutter.tap_id%7D%7D/meltano.yml
u
If your meltano project is outside the tap repo you can replace the dot with the path to the local tap repo path
a
Thank you. I am a little confused though (I am quite new to this stuff). Is the location of the meltano project the same directory as
meltano.yml
? So let’s say in my project folder
p1
, I have two folders:
f1
and
f2
.
f1
contains
meltano.yml
.
f2
contains my local version of
tap-facebook
, cloned from Github. I tried setting pip_url to
-e .
and also
-e ~/Desktop/p1/f2/tap-facebook
and also
-e ../f2/tap-facebook
, but none of these had any impact on the execution results. It still seems to be running the one from the last commit in Github.
Do I need to do a meltano install once I have changed the pip_url maybe?
u
I think youre understanding it correctly but yes you should run a re-install probably with
--clean
to be safe in order for it to get picked up
a
That did it! Using
-e ../f2/tap-facebook
worked for me. Thank you for your help.