jules_huisman
11/16/2021, 3:29 PMmeltano invoke tap-twitter | target-s3-parquet
However, things break when I use the Meltano elt command:
meltano elt tap-twitter target-s3-parquet
It then throws this error:
/target-s3-parquet/target-s3-parquet.sh: 14: cannot open /dev/stdin: No such device or address
I cannot really figure out why it throws this error. I think it has something to do with the shell file it executes to run the target.jules_huisman
11/16/2021, 3:29 PMedgar_ramirez_mondragon
11/16/2021, 5:25 PMtarget-s3-parquet.sh
?jules_huisman
11/16/2021, 6:23 PM#!/bin/sh
# This simple script allows you to test your target from any directory, while still taking
# advantage of the poetry-managed virtual environment.
# Adapted from: <https://github.com/python-poetry/poetry/issues/2179#issuecomment-668815276>
unset VIRTUAL_ENV
STARTDIR=$(pwd)
TOML_DIR=$(dirname "$0")
cd "$TOML_DIR" || exit
poetry install 1>&2
poetry run target-s3-parquet $* < /dev/stdin
jules_huisman
11/16/2021, 6:45 PM< /dev/stdin
everything works fine. I am not entirely sure what this part does.
...
poetry run target-s3-parquet $*
edgar_ramirez_mondragon
11/16/2021, 6:46 PMedgar_ramirez_mondragon
11/16/2021, 6:47 PMI am not entirely sure what this part does.The
$*
part passes any arguments from the .sh script invocation like --config
, etc. to the command poetry run target-s3-parquet
edgar_ramirez_mondragon
11/16/2021, 6:49 PMIf I simply removeThis may be a bug in the cookiecutter shell script. cc @aaronsteerseverything works fine.< /dev/stdin
jules_huisman
11/16/2021, 6:49 PMjules_huisman
11/16/2021, 6:50 PMmeltano elt
it works with any other invocation. Maybe that helps with debugging.aaronsteers
11/16/2021, 6:52 PMaaronsteers
11/16/2021, 6:54 PMniall_woodward
12/13/2021, 8:16 PM< /dev/stdin
? I'm encountering this when running on GH actions.niall_woodward
12/13/2021, 8:17 PM