Build is failing on Github

Hi team,

I am building my first Remix + Fly app and following this GitHub - remix-run/blues-stack: The Remix Stack for deploying to Fly with PostgreSQL, authentication, testing, linting, formatting, etc..
Everything works fine on local but when I try to deploy the build step fails in the Github Actions with the following error messages:

Error: buildx failed with: ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref kne0msd6uexyjrhi1dqwby7iz::uk0c4v8ukx8dm5nuk4vhr6cr7: "/package-lock.json": not found

Not sure, what is wrong.

PS: App name is dnb-staging

Thanks in advance.

It is possible it is related to a package-lock.json not being committed, your local might have it and GitHub doesn’t

Yes, I see that its not pushed to github for some reason.

You might have a .gitignore preventing that

Added package-lock forcefully and now I think I am getting different errot.

WARNING: local cache import at /tmp/.buildx-cache not found due to err: could not read /tmp/.buildx-cache/index.json: open /tmp/.buildx-cache/index.json: no such file or directory
ERROR: failed to solve: unexpected status: 404 Not Found
Error: buildx failed with: ERROR: failed to solve: unexpected status: 404 Not Found

It appears we’ve seen this error already:

Can you try verify that?

App name on fly: dnb-staging
App name in fly.toml: app = “dnb-staging”

On checking the logs I see that deploy step is trying to deploy app with the name dnb-staging-staging and is failing so I tried to rename app name in fly.toml to dnb and it again fails at build step saying app not found.