Skip to content

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

@linuxninja39

Description

@linuxninja39

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions