Skip to content
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

app.go file cannot be found #3850

Closed
toschdev opened this issue Dec 19, 2023 · 2 comments · Fixed by #3871
Closed

app.go file cannot be found #3850

toschdev opened this issue Dec 19, 2023 · 2 comments · Fixed by #3871
Assignees

Comments

@toschdev
Copy link
Contributor

toschdev commented Dec 19, 2023

Describe the bug

A chain got scaffolded prior version 28.0.0, then use v28.0.0 and ignite chain serve will result in the message

cannot build app:

  app.go file cannot be found

  Waiting for a fix before retrying...

To reproduce
Steps to reproduce the behavior:

  1. cd github.com/ignite/cli
  2. git checkout v0.27.1
  3. make install
  4. ignite scaffold chain blog && cd blog
  5. ignite chain serve
    -> works
  6. cd github.com/ignite/cli
  7. git checkout v28.0.0
  8. make install
  9. cd blog
  10. ignite chain serve
    ->
cannot build app:

  app.go file cannot be found

  Waiting for a fix before retrying...

What version are you using?

Ignite CLI version: v28.0.0-dev
Ignite CLI build date: 2023-12-06T08:52:35Z
Ignite CLI source hash: 936476c
Ignite CLI config version: v1
Cosmos SDK version: v0.50.1

@julienrbrt julienrbrt self-assigned this Dec 20, 2023
@solenopsys
Copy link

solenopsys commented Dec 24, 2023

Same problem:

Dockerfile:

FROM alpine/git AS CLONE
RUN mkdir /temp
WORKDIR /temp
RUN git clone https://github.com/tendermint/spn


FROM ignitehq/cli:latest AS BUILD
COPY --from=CLONE /temp/spn /spn
WORKDIR /spn
USER root
RUN chmod -R 777 /spn/go.mod
RUN ls app
RUN go mod tidy
RUN ignite chain build
CMD [  "chain","serve","--skip-proto" ]


Log:

0.268 Cosmos SDK's version is: v0.47.3
0.332
143.2 ✘ Cannot build app:
143.2
143.2 app.go file cannot be found
------
Containerfile:14
--------------------
  12 |     RUN ls app
  13 |     RUN go mod tidy
  14 | >>> RUN ignite chain build
  15 |     CMD [  "chain","serve","--skip-proto" ]
  16 |
--------------------
error: failed to solve: process "/bin/sh -c ignite chain build" did not complete successfully: exit code: 1

@Jovonni
Copy link

Jovonni commented Dec 31, 2023

Getting the same thing:

command:

ignite scaffold module moduledev
✘ App.go file cannot be found

version

 ignite version
Ignite CLI version:             v28.1.0
Ignite CLI build date:          2023-12-23T08:29:07Z
Ignite CLI source hash:         4bb56d0cf73d16303221d8d1ffdd3ec395682813
Ignite CLI config version:      v1
Cosmos SDK version:             v0.50.1
Your OS:                        darwin
Your arch:                      arm64
Your Node.js version:           v14.18.1
Your go version:                go version go1.21.5 darwin/arm64
Your uname -a:                  Darwin user.attlocal.net 21.3.0 Darwin Kernel Version 21.3.0: Wed Jan  5 21:37:58 PST 2022; root:xnu-8019.80.24~20/RELEASE_ARM64_T8101 arm64
Your cwd:                       /Users/user/Documents/CHAIN-DEV/TESTCHAIN
Is on Gitpod:                   false

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants