10000 feat(config): make binary name customizable by ilgooz · Pull Request #675 · ignite/cli · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat(config): make binary name customizable #675

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

Merged
merged 13 commits into from
Jan 26, 2021
Merged

feat(config): make binary name customizable #675

merged 13 commits into from
Jan 26, 2021

Conversation

ilgooz
Copy link
Member
@ilgooz ilgooz commented Jan 21, 2021

for Stargate.

this introduces a new top level prop called binary in the config.yml.

@ilgooz ilgooz linked an issue Jan 21, 2021 that may be closed by this pull request
for Stargate.

this introduces a new top level prop called `binary` in the `config.yml`.
@ilgooz ilgooz marked this pull request as ready for review January 22, 2021 07:41
@ilgooz ilgooz requested review from fadeev and lumtis as code owners January 22, 2021 07:41
@ilgooz
Copy link
Member Author
ilgooz commented Jan 22, 2021

This PR just makes it possible to change binary names. Compiling binaries from custom main pkg paths will be done by configuring the incoming build.main prop in the config.yml.

@fadeev
Copy link
Contributor
fadeev commented Jan 22, 2021

So, if I have binary: foo it will actually build and use foo, no matter what the repo name is.

@fadeev
Copy link
Contributor
fadeev commented Jan 22, 2021

There is a tiny issue in that if I set the binary, it rebuilds, but if I change it, while serve is running, it will error, because it's using a previous one.

@ilgooz
Copy link
Member Author
ilgooz commented Jan 22, 2021

This should be good to go for reviewing. 👍

lumtis
lumtis previously approved these changes Jan 22, 2021
Copy link
Contributor
@lumtis lumtis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK 👍

fadeev
fadeev previously approved these changes Jan 22, 2021
Copy link
Contributor
@fadeev fadeev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🍕

@ilgooz ilgooz dismissed stale reviews from fadeev and lumtis via f252d87 January 23, 2021 07:02
@ilgooz ilgooz requested review from fadeev and lumtis January 23, 2021 07:03
fadeev
fadeev previously approved these changes Jan 25, 2021
Copy link
Contributor
@fadeev fadeev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I missed the test fail.

Copy link
Contributor
@fadeev fadeev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

@ilgooz ilgooz merged commit 74bb06f into develop Jan 26, 2021
@ilgooz ilgooz deleted the feat/yml-binary branch January 26, 2021 08:45
faddat added a commit that referenced this pull request Jan 27, 2021
* feat: gh pages automation (#689)

* Create pages.yml

gh pages automation for stargate

* Create pages.yml

launchpad

* Update readme.md.plush

Update stargate readme

* Update readme.md.plush

directions and usage info for gh pages action

* feat(serve): chain state persistence and chain upgrade (#673)

* Change command proposition (#694)

* feat(config): make binary name customizable (#675)

* feat(config): make binary name customizable

for Stargate.

this introduces a new top level prop called `binary` in the `config.yml`.

* fix merge

* fix lint

* fix merge

* move binary prop under build

* feat(proto): automatically include third party proto (#685)

* feat(proto): automatically include third party proto

* removed third party proto paths from the scaffold (third_party/proto and proto/cosmos).
* removed third party proto now automatically included during code generation by using Go's module system. (not by a dark magic).
* for now scaffolded apps only needs third party protos from Cosmos SDK itself, keep in mind that SDK has a `go.mod` thereof it was possible to use Go's module system to get its proto files (which is `proto/` and `third_party/proto/`).

BE AWARE that:

* if scaffolded apps at some point require some other third party protos from different repos that also have `go.mod`s, we can implement another feature that reads Git urls of these repos from the `proto` section of config.yml` and easily access their protos.

        FUTURE NOTE, following posibilities will occur:
                * third party added to `config.yml` might be imported by the app's `go.mod`
                * third party added to `config.yml` might not be imported by the app's `go.mod`. this also requires version of the third party to be defined in the `config.yml`.
                * relative paths of proto dirs needed under these third party proto repos must be defined in the `config.yml` as well.
                * keep in mind conflicting proto files with the same proto and Go package name.

* proto repos that does not have a `go.mod` (means not a Go project) still can be manually downloaded and moved under `proto_vendor` or `third_party/proto` (supported for backwards compability) paths.
as it is easily posible to use proto files from Go projects, supporting non-Go ones requires some additional effort of developing a minimal package manager for proto since it is not possible to relay this work to Go's module system anymore.

* tidy

* rm another unused

* docs

* gitpod: fix protoc installation & make sure to global proto can be resolved

* break Gitpod cache

* maybe Gitpod removes hidden files in pre-built workspaces

* gitpod: install protoc via brew

* fix gitpod ~/home is not persistent, so use a Dockerfile

* fix gitpod

Co-authored-by: Lucas Bertrand <lucas.bertrand.22@gmail.com>
Co-authored-by: İlker G. Öztürk <ilkergoktugozturk@gmail.com>
Jchicode pushed a commit to Jchicode/cli that referenced this pull request Aug 9, 2023
* feat(config): make binary name customizable

for Stargate.

this introduces a new top level prop called `binary` in the `config.yml`.

* fix merge

* fix lint

* fix merge

* move binary prop under build
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 this pull request may close these issues.

feat: add binary top-level prop to config.yml
3 participants
0