rails-lambda / lamby

đŸ‘đŸ›€ Simple Rails & AWS Lambda Integration
https://lamby.cloud
MIT License
602 stars 29 forks source link

Error message: 'github' is undefined #184

Closed es-ki closed 1 month ago

es-ki commented 1 month ago

I executed the following command listed in the Quick Start guide:

docker run \
  --rm \
  --interactive \
  --volume "${PWD}:/var/task" \
  ghcr.io/rails-lambda/lamby-cookiecutter \
  "gh:rails-lambda/lamby-cookiecutter"

As a result, the following error was displayed:

project_name [my_awesome_lambda]: foo
Unable to create file '.github/workflows/ci.yml'
Error message: 'github' is undefined
Context: {
    "cookiecutter": {
        "_output_dir": "/var/task",
        "_template": "gh:rails-lambda/lamby-cookiecutter",
        "project_name": "foo"
    }
}

a

I'm using Windows 11.

jeremiahlukus commented 1 month ago

Usually things are ment to work on Linux or Mac. This code works on both of those.

Are you able to clone and push to other repos? I haven’t used windows in over 10 years so I won’t be able to help you debug this unfortunately.

I can guarantee that it works on both Linux and Mac however.

zvkemp commented 1 month ago

I have the same issue on MacOS 13.4.

jeremiahlukus commented 1 month ago

Can you update to a more recent version of Mac and try? And do you have the latest version of docker running?

Also this command is just pulling a docker image nothing to do with the functionality of Lamby. This issue should probably be in the cookie cutter repo but you can really expect to have the command to pull g the cookie cutter repo for every version of Mac and Linux.

jeremiahlukus commented 1 month ago

For sanity’s sake I’ll pull the repo again when I get home in a couple hours just to make sure nothing has changed since last time I pulled the repo down ( a month or so ago).

For what it’s worth, in my personal applications I create a new application using the rails cli then convert to use lamby or use jumpstart template and convert that

jeremiahlukus commented 1 month ago

Sorry @es-ki and @zvkemp seems like this is an issue no idea why/when this happened. Ill work on fixing it.

jeremiahlukus commented 1 month ago

https://github.com/rails-lambda/lamby-cookiecutter/issues/48

jeremiahlukus commented 1 month ago

Its fixed now you should be able to run the command again

es-ki commented 1 month ago

@jeremiahlukus Thank you! It worked!