-
Notifications
You must be signed in to change notification settings - Fork 374
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
Improve txtar DX #1269
Comments
|
I didn't examine in detail, but we can likely add a linguist directly to GitHub to support these files. It appears we need at least 200 unique repositories using this extension to submit a new one, which might already be possible given the fact that txtar was existing before gno.
I actually like the idea of having a specific Based on recent experiences, I am exploring better ways to configure # The node is already started.
# Execute some commands.
gnokey addpkg ...
-- myrealm.gno --
package hello
func Render(path string) string {
return "hello world"
}
-- .env --
# gnoland config
GNOLAND_START_MINIMAL=true
# balance
GNOLAND_BALANCE_USER_test2=100000ugnot
GNOLAND_BALANCE_USER_test3=100000ugnot
... With this approach, we can easily create users directly or update configurations as needed. |
This PR presents a GNOT wrapper that conforms to the GRC20 interface. Optimally, the txtar file should be relocated to the wugnot directory, pending resolution of [issue #1269](#1269 (comment)). Enabling the use of `gnokey maketx call -func WUGNOT.Transfer` over `-func Transfer` would streamline the wrapper, reducing it to just the initial 55 lines. <!-- please provide a detailed description of the changes made in this pull request. --> <details><summary>Contributors' checklist...</summary> - [x] Added new tests, or not needed, or not feasible - [x] Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory - [x] Updated the official documentation or not needed - [x] No breaking changes were made, or a `BREAKING CHANGE: xxx` message was included in the description - [x] Added references to related issues and PRs - [x] Provided any useful hints for running manual tests - [x] Added new benchmarks to [generated graphs](https://gnoland.github.io/benchmarks), if any. More info [here](https://github.com/gnolang/gno/blob/master/.benchmarks/README.md). </details> --------- Signed-off-by: moul <94029+moul@users.noreply.github.com>
I would avoid using environment variables for input, and discourage its usage by not supporting it where at all possible. I much prefer explicit --flags, or files. Anything but environment variables. My main thing with tests is this: I just want "make test" to work as expected, at the root, and at the individual project levels. At the root it should just pass any options and call make test individually. Anyone who pulls the codebase should be able to get make test passing, and go test ./... should all work as expected too. |
The test data should not be compiled into the same binary as the gnoland binary. |
They already are, and for now, they are not part of the gnoland binary. Even though it might look like bash,
I totally agree with this.
That's fine. The
It's not yet implemented, but I intended to use environment variables to create something that users can easily copy and paste in a bash environment. I understand that we shouldn't use this in production, but it can be handy in a testing environment. I don't mind using something else, like flags. |
This PR presents a GNOT wrapper that conforms to the GRC20 interface. Optimally, the txtar file should be relocated to the wugnot directory, pending resolution of [issue gnolang#1269](gnolang#1269 (comment)). Enabling the use of `gnokey maketx call -func WUGNOT.Transfer` over `-func Transfer` would streamline the wrapper, reducing it to just the initial 55 lines. <!-- please provide a detailed description of the changes made in this pull request. --> <details><summary>Contributors' checklist...</summary> - [x] Added new tests, or not needed, or not feasible - [x] Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory - [x] Updated the official documentation or not needed - [x] No breaking changes were made, or a `BREAKING CHANGE: xxx` message was included in the description - [x] Added references to related issues and PRs - [x] Provided any useful hints for running manual tests - [x] Added new benchmarks to [generated graphs](https://gnoland.github.io/benchmarks), if any. More info [here](https://github.com/gnolang/gno/blob/master/.benchmarks/README.md). </details> --------- Signed-off-by: moul <94029+moul@users.noreply.github.com>
Since we're increasingly using txtar, both as an integration test system and a means of sharing self-contained complex examples (#1262), I propose enhancing the txtar experience for developers. Here are some suggestions:
.gitattributes
linguist language from this resource: https://gist.github.com/moul/113c2cc8bb27ce80969995192ddb4c7f.cc @gfanton
The text was updated successfully, but these errors were encountered: