-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Get cdktf-cli package working #5306
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
Comments
There are 2 issues here, both being tracked in other issues: |
@Electroid can we keep this open as I think excluding #4798 and #4785, there are still additional issues w/ the cdktf CLI. |
I'm running into similar issues with v1.0.2 (Which fixed some of the aws sdk errors) and now I'm getting
|
@ConorWright did you mean to post this somewhere else? This ticket is meant for the |
Tried again today w/ bun 1.0.2 and made it past the crash error.
So here we can see a couple issues:
|
To solve problem 1 above, I did the following:
Then I got
so the help menu was showing as expected. |
I get this when running a |
I got this working, by using a node image and installing bun/cdktf in it. It's a workaround, yes, but I see no other way (yet) to use ctktf with bun in a docker container. Run these commands in your container (I used the image
To test if cdktf is working in the container, execute something like this:
|
|
however, since running the script directly after the global install fails i'll leave this open for now until
|
I have used cdktf for production running in an atlantis container with bun for a while, and it works great. I have a template repo https://github.com/keidarcy/cdktf-bun-init for cdktf with bun and biome for quick start. |
Uh oh!
There was an error while loading. Please reload this page.
What version of Bun is running?
1.0.2
What platform is your computer?
Darwin 22.6.0 arm64 arm
What steps can reproduce the bug?
From the host OS
docker run -it --rm --entrypoint bash oven/bun:1.0.2
From within the container
export PATH=$PATH:/root/.bun/bin
export BUN_INSTALL=/root/.bun
bun i -g cdktf-cli
bunx cdktf
What is the expected behavior?
It prints the CLI options
What do you see instead?
then a bunch of minified JS then
Additional information
I've seen different errors depending on the host OS I'm using. Sometimes it's this error, sometimes I see
if I forgot to set the PATH or BUN_INSTALL variables.
There was once occasion where I saw the CLI options, but they all started with
bunx
rather thancdktf
as the CLI in the help menu, likely something having to do w/ the implementation using argv[0]. After that I tried to runand got yet another error of some core node module missing.
Overall I'm attempting to start this as a master ticket coordinating everything else needed in order to get cdktf working in bun.
The text was updated successfully, but these errors were encountered: