Skip to content

Commit

Permalink
rollback ThirdPartyPaths delete
Browse files Browse the repository at this point in the history
  • Loading branch information
Pantani committed Jul 5, 2024
1 parent 167273e commit ba2840e
Show file tree
Hide file tree
Showing 16 changed files with 8 additions and 78 deletions.
6 changes: 0 additions & 6 deletions docs/docs/02-guide/06-ibc.md
Original file line number Diff line number Diff line change
Expand Up @@ -432,9 +432,6 @@ version: 1
build:
proto:
path: proto
third_party_paths:
- third_party/proto
- proto_vendor
accounts:
- name: alice
coins:
Expand Down Expand Up @@ -463,9 +460,6 @@ version: 1
build:
proto:
path: proto
third_party_paths:
- third_party/proto
- proto_vendor
accounts:
- name: alice
coins:
Expand Down
6 changes: 0 additions & 6 deletions docs/docs/02-guide/07-interchange/02-init.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,6 @@ version: 1
build:
proto:
path: proto
third_party_paths:
- third_party/proto
- proto_vendor
accounts:
- name: alice
coins:
Expand Down Expand Up @@ -164,9 +161,6 @@ version: 1
build:
proto:
path: proto
third_party_paths:
- third_party/proto
- proto_vendor
accounts:
- name: alice
coins:
Expand Down
6 changes: 3 additions & 3 deletions docs/docs/06-migration/v28.0.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,15 @@ This guide provides a step-by-step process for developers to upgrade their appli
- **Old Code**:

```go
store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.PostKey))
store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.PostKey))

```

- **New Code**:

```go
storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx))
store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.PostKey))
storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx))
store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.PostKey))
```

Expand Down
11 changes: 0 additions & 11 deletions docs/docs/08-references/02-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,17 +203,6 @@ build:
path: "myproto"
```

Ignite comes with required third-party proto out of the box. Ignite also looks
into `third_party/proto` and `proto_vendor` directories for extra proto files.
If your project keeps third-party proto files in a different directory, you
should tell Ignite about this:

```yml
build:
proto:
third_party_paths: ["my_third_party/proto"]
```

## Faucet

The faucet service sends tokens to addresses.
Expand Down
6 changes: 0 additions & 6 deletions docs/versioned_docs/version-v28/02-guide/06-ibc.md
Original file line number Diff line number Diff line change
Expand Up @@ -432,9 +432,6 @@ version: 1
build:
proto:
path: proto
third_party_paths:
- third_party/proto
- proto_vendor
accounts:
- name: alice
coins:
Expand Down Expand Up @@ -463,9 +460,6 @@ version: 1
build:
proto:
path: proto
third_party_paths:
- third_party/proto
- proto_vendor
accounts:
- name: alice
coins:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,6 @@ version: 1
build:
proto:
path: proto
third_party_paths:
- third_party/proto
- proto_vendor
accounts:
- name: alice
coins:
Expand Down Expand Up @@ -164,9 +161,6 @@ version: 1
build:
proto:
path: proto
third_party_paths:
- third_party/proto
- proto_vendor
accounts:
- name: alice
coins:
Expand Down
11 changes: 0 additions & 11 deletions docs/versioned_docs/version-v28/08-references/02-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,17 +183,6 @@ build:
path: "myproto"
```

Ignite comes with required third-party proto out of the box. Ignite also looks
into `third_party/proto` and `proto_vendor` directories for extra proto files.
If your project keeps third-party proto files in a different directory, you
should tell Ignite about this:

```yml
build:
proto:
third_party_paths: ["my_third_party/proto"]
```

## Faucet

The faucet service sends tokens to addresses.
Expand Down
7 changes: 1 addition & 6 deletions ignite/config/chain/base/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@ type Build struct {
type Proto struct {
// Path is the relative path of where app's proto files are located at.
Path string `yaml:"path"`

// ThirdPartyPath is the relative path of where the third party proto files are
// located that used by the app.
ThirdPartyPaths []string `yaml:"third_party_paths"`
}

// Client configures code generation for clients.
Expand Down Expand Up @@ -204,8 +200,7 @@ func DefaultConfig() Config {
return Config{
Build: Build{
Proto: Proto{
Path: "proto",
ThirdPartyPaths: []string{"third_party/proto", "proto_vendor"},
Path: "proto",
},
},
Faucet: Faucet{
Expand Down
3 changes: 1 addition & 2 deletions ignite/config/chain/v1/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ func TestConfigDecode(t *testing.T) {
Build: base.Build{
Binary: "evmosd",
Proto: base.Proto{
Path: "proto",
ThirdPartyPaths: []string{"third_party/proto", "proto_vendor"},
Path: "proto",
},
},
Accounts: []base.Account{
Expand Down
3 changes: 0 additions & 3 deletions ignite/config/chain/v1/testdata/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ build:
binary: evmosd
proto:
path: proto
third_party_paths:
- third_party/proto
- proto_vendor
accounts:
- name: alice
coins:
Expand Down
3 changes: 0 additions & 3 deletions ignite/config/chain/v1/testdata/config2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ build:
binary: evmosd
proto:
path: proto
third_party_paths:
- third_party/proto
- proto_vendor
accounts:
- name: alice
coins:
Expand Down
1 change: 0 additions & 1 deletion ignite/pkg/cosmosgen/cosmosgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import (

// generateOptions used to configure code generation.
type generateOptions struct {
includeDirs []string
useCache bool
updateBufModule bool
ev events.Bus
Expand Down
7 changes: 1 addition & 6 deletions ignite/pkg/cosmosgen/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,7 @@ func (g *generator) setup(ctx context.Context) (err error) {
}

func (g *generator) getProtoIncludeFolders(modPath string) []string {
// Add default protoDir and default includeDirs
includePaths := []string{filepath.Join(modPath, g.protoDir)}
for _, dir := range g.opts.includeDirs {
includePaths = append(includePaths, filepath.Join(modPath, dir))
}
return includePaths
return []string{filepath.Join(modPath, g.protoDir)}
}

func (g *generator) findBufPath(modpath string) (string, error) {
Expand Down
1 change: 0 additions & 1 deletion ignite/services/chain/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ var appBackendSourceWatchPaths = []string{
"cmd",
"x",
"proto",
"third_party",
}

type (
Expand Down
3 changes: 0 additions & 3 deletions integration/doctor/testdata/config-need-migrate.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ version: 1
build:
proto:
path: proto
third_party_paths:
- third_party/proto
- proto_vendor
accounts:
- name: alice
coins:
Expand Down
6 changes: 2 additions & 4 deletions integration/relayer/cmd_relayer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ var (
Version: 1,
Build: base.Build{
Proto: base.Proto{
Path: "proto",
ThirdPartyPaths: []string{"third_party/proto", "proto_vendor"},
Path: "proto",
},
},
Accounts: []base.Account{
Expand Down Expand Up @@ -91,8 +90,7 @@ var (
Version: 1,
Build: base.Build{
Proto: base.Proto{
Path: "proto",
ThirdPartyPaths: []string{"third_party/proto", "proto_vendor"},
Path: "proto",
},
},
Accounts: []base.Account{
Expand Down

0 comments on commit ba2840e

Please sign in to comment.