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

scaffold query fails to update openapi.yml when done before scaffold message #1958

Closed
linuxninja39 opened this issue Dec 29, 2021 · 1 comment
Labels

Comments

@linuxninja39
Copy link

Describe the bug
When I start a new chain, if the first thing I do is scaffold query, then starport fails to update openapi.yml. If I do a scaffold message first, then all seems to work well.

To Reproduce
Steps to reproduce the behavior:

  1. starport scaffold chain github.com/iscool/my-chain
  2. cd my-chain
  3. starport scaffold query coolThing fieldOne fieldTwo -r coolCar
  4. grep -i coolThing docs/static/openapi.yml

vs

  1. starport scaffold chain github.com/iscool/my-chain
  2. cd my-chain
  3. starport scaffold message coolMessage fieldOne fieldTwo
  4. grep -i coolMessage docs/static/openapi.yml
  5. starport scaffold query coolThing fieldOne fieldTwo -r coolCar
  6. grep -i coolThing docs/static/openapi.yml

Please provide the version output

  • Starport version: v0.19.1
    Starport build date: 2021-12-18T05:56:36Z
    Starport source hash: -
    Your OS: linux
    Your arch: amd64
    Your go version: go version go1.17.5 linux/amd64
    Your uname -a: Linux optimus 5.13.19-2-MANJARO add linter and add linting in ci #1 SMP PREEMPT Sun Sep 19 21:31:53 UTC 2021 x86_64 GNU/Linux
    Your cwd: /home/jacob/dev/go/my-chain
    Is on Gitpod: false
@ilgooz
Copy link
Member

ilgooz commented Jan 6, 2022

Hey, thanks for reporting. This is a known limitation. It's tracked by #835, please check. Feel free to continue to the discussion there.

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

No branches or pull requests

2 participants