I keep getting this error when trying to install a...
# troubleshooting
c
I keep getting this error when trying to install a tap
Copy code
2024-09-06T09:15:07,995     Running command git checkout -q master
2024-09-06T09:15:07,999     error: pathspec 'master' did not match any file(s) known to git
2024-09-06T09:15:08,003     error: subprocess-exited-with-error
Is there a way to specify which branch to use since I believe master doesn't exist, just main does.
maybe this has something to do with poetry?
Copy code
.meltano/extractors/tap-linear/venv/lib/python3.10/site-packages/pip/__pip-runner__.py install --ignore-installed --no-user --prefix /tmp/pip-build-env-j6ztdxan/overlay --no-warn-script-location --disable-pip-version-check -vv --no-binary :none: --only-binary :none: -i <https://pypi.org/simple> -- 'poetry-core @ git+<https://github.com/python-poetry/poetry-core.git@master>'
e
what does the
pip_url
look like for that tap?
c
Copy code
- name: tap-linear
    variant: getoslash
    pip_url: git+<https://github.com/getoslash/tap-linear.git>
I tried to fork that repo since it is a little old and update things but am still getting the same error even when trying to install the custom extractor locally.
e
Your git client might be configured to use
master
as the default branch, I think? Can you try
Copy code
pip_url: git+<https://github.com/getoslash/tap-linear.git@main>
c
Yeah it was confusing, but I think the problem is poetry core:
Copy code
2024-10-11T15:01:31,766   Collecting poetry-core@ git+<https://github.com/python-poetry/poetry-core.git@master>
2024-10-11T15:01:31,766     Cloning <https://github.com/python-poetry/poetry-core.git> (to revision master) to /tmp/pip-install-hxscm6cb/poetry-core_db3a1b063c934e6389648860dffe2d90
2024-10-11T15:01:31,766     Running command git version
2024-10-11T15:01:31,780     git version 2.46.1
2024-10-11T15:01:31,780     Running command git clone --filter=blob:none --verbose --progress <https://github.com/python-poetry/poetry-core.git> /tmp/pip-install-hxscm6cb/poetry-core_db3a1b063c934e6389648860dffe2d90
2024-10-11T15:01:31,800     Cloning into '/tmp/pip-install-hxscm6cb/poetry-core_db3a1b063c934e6389648860dffe2d90'...
Is this something that meltano does by itself?
It looks like that was something that was removed a while ago https://github.com/python-poetry/poetry/issues/6741
e
Oh I see. I even opened a PR a while back: https://github.com/getoslash/tap-linear/pull/2
Then
Copy code
pip_url: <https://github.com/edgarrmondragon/tap-linear.git@patch-1>
c
Oh gotcha. Yeah I forked that tap and was trying to get it working from my fork. I'll make the change there.
Thank you!
I was mistaken that the poetry-core install was something in meltano itself not as part of the tap installation.