-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix running error by reverting import with type json #1422
Conversation
Locally, if I compile with But if I compile with |
You can set and that should fix the error you're seeing with some warnings i am guessing you're trying to do some local dev.. i'll actually recommend using: - npm run dev # if you're a fan of hot-reloading
- npm run dev -- --list-json # if you want only want to test the `--list-json` option
- npx tsx src/index.ts --list-json # no hot-reload |
I'll give it a go
No actually, I was using |
If I run |
It still does fail. |
manage to replicate your issue via FROM node:18.18
# FROM node:18.20 # works for 18.20 and beyond
WORKDIR /app
RUN apt-get update && \
apt-get install -y rsync git && \
rm -rf /var/lib/apt/lists/*
RUN cat <<EOF > .gitlab-ci.yml
---
job:
script:
- echo "hello world" \
EOF
RUN npx gitlab-ci-local@latest |
and to be honest, i am not exactly sure what value does the |
After building, running
|
opps, i was'nt saying that it's not good.. was actually about to approve it but yeah anyways, don't really have too much opinion on the way to import the json file... as long as it works and passes the integaration tests |
And with the latest commit, it fails with
No I'm just an idiot who forgot how to parse json... |
https://github.com/firecow/gitlab-ci-local/blame/master/README.md#L391 most effortless change would be update to node 18.20 + 😂 |
I agree it's a good idea to update the required version. On my end, that'll take some time, and I've managed to get the branch in a state where everything is passing. I'd appreciate the acceptance of an interim solution for us. |
I can't re-open this PR, but I can make a new one if you can't either. |
When running the tool, the following error is returned:
Minimal .gitlab-ci.yml illustrating the issue
Expected behavior
Tool to run
Host information
MacOs
gitlab-ci-local 4.55
Containerd binary
Are you using docker
Additional context
This seems related to #1331 and #1337
My installed typescript version is 5.6.3, so I don't think it's that.
Still trying to figure out why this doesn't work.