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

feat: precompile imports and fix gnodev test #431

Merged
merged 9 commits into from
Jan 11, 2023

Commits on Jan 9, 2023

  1. Support precompiling imports automatically

    Now `gnodev precompile` and `gnodev test --precompile`
    support precompiling imports of the input file or
    package.
    
    - `gnodev precompile`: It is enabled by default. You need to pass
    addition flag `--skip-imports` to disable it.
    
    - `gnodev test --precompile` precompile imports automatically.
    
    Signed-off-by: Hariom Verma <hariom.verma@tendermint.com>
    harry-hov committed Jan 9, 2023
    Configuration menu
    Copy the full SHA
    15d9f16 View commit details
    Browse the repository at this point in the history
  2. Create temporary go.mod for gnodev test

    Fix error `cannot find package...` while running `gnodev test`
    by creating temporary go.mod file in the temporary root directory.
    
    Signed-off-by: Hariom Verma <hariom.verma@tendermint.com>
    harry-hov committed Jan 9, 2023
    Configuration menu
    Copy the full SHA
    b1e5e56 View commit details
    Browse the repository at this point in the history
  3. Run build in the root dir

    Try to find the nearest go.mod file, run `go build` in the same
    folder.
    
    Signed-off-by: Hariom Verma <hariom.verma@tendermint.com>
    harry-hov committed Jan 9, 2023
    Configuration menu
    Copy the full SHA
    493351d View commit details
    Browse the repository at this point in the history
  4. stdshim: replace gen.go files with gno files

    Currently, `stdlibs/stdshim` contains generated `*.gen.go` files.
    While other packages in the stdlibs contains `*.gno` files. Lets
    replace generated files with `*.gno` files.
    
    Signed-off-by: Hariom Verma <hariom.verma@tendermint.com>
    harry-hov committed Jan 9, 2023
    Configuration menu
    Copy the full SHA
    541dc85 View commit details
    Browse the repository at this point in the history
  5. Fix package name upgrade-a

    Signed-off-by: Hariom Verma <hariom.verma@tendermint.com>
    harry-hov committed Jan 9, 2023
    Configuration menu
    Copy the full SHA
    173897d View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2023

  1. Resolve temp build Dir

    Signed-off-by: Hariom Verma <hariom.verma@tendermint.com>
    harry-hov committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    2ef8dce View commit details
    Browse the repository at this point in the history
  2. unexport ImportPath

    harry-hov committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    2385888 View commit details
    Browse the repository at this point in the history
  3. unexport precompileOptions methods

    Signed-off-by: Hariom Verma <hariom.verma@tendermint.com>
    harry-hov committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    3537963 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    391aabf View commit details
    Browse the repository at this point in the history