Skip to content

Commit

Permalink
Merge branch 'master' into feat/add-disperse
Browse files Browse the repository at this point in the history
  • Loading branch information
leohhhn authored Jan 23, 2024
2 parents 66db7cb + 7339bdc commit cc14f6d
Show file tree
Hide file tree
Showing 60 changed files with 1,128 additions and 166 deletions.
61 changes: 45 additions & 16 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,63 @@

# Tendermint2 (Gno version).
tm2/* @gnolang/tech-staff
tm2/pkg @jaekwon @moul
tm2/pkg @jaekwon @piux2 @moul @zivkovicmilos
tm2/pkg/crypto @jaekwon @moul @gnolang/security
# TODO: add per package exceptions

# ...

# Docs & Content.
docs/ @gnolang/devrels @gnolang/tech-staff
misc/docusaurus/ @gnolang/devrels @gnolang/tech-staff
# TODO: add non-tech people here.

docs/ @gnolang/devrels
misc/docusaurus/ @gnolang/devrels
README.md @gnolang/devrels
.gitpod.yml @gnolang/devrels

# Gno examples and default contracts.
examples/* @gnolang/tech-staff
examples/ @gnolang/tech-staff @gnolang/devrels
examples/gno.land/r/gnoland/ @moul
examples/gno.land/r/gov/ @moul
examples/gno.land/r/sys/ @moul
examples/gno.land/r/worx/ @moul
examples/gno.land/r/x @gnolang/devrels
# TODO: add people from the community here.

examples/gno.land/r/jaekwon/ @jaekwon
examples/gno.land/r/manfred/ @moul

# Gno.land.
gno.land/* @gnolang/tech-staff

gno.land/ @moul
gno.land/pkg/integration @gfanton
#...

# GnoVM/Gnolang.
gnovm/* @gnolang/tech-staff
gnovm/stdlibs @jaekwon @moul
gnovm/pkg/gnolang @jaekwon @moul
gnovm/ @gnolang/tech-staff
gnovm/stdlibs @jaekwon @thehowl
gnovm/tests @jaekwon @piux2 @thehowl @moul
gnovm/cmd/gno @jaekwon @thehowl @harry-hov @moul
gnovm/pkg/gnolang @jaekwon @piux2 @thehowl @moul
gnovm/pkg/doc @thehowl
gnovm/pkg/gnomod @harry-hov
gnovm/pkg/integration @gfanton
#gnovm/pkg/gnoenv
#gnovm/pkg/repl

# Contribs
contribs/ @gnolang/tech-staff
contribs/gnodev @gfanton
contribs/gnokeykc @moul
contribs/gnomd @moul
#...

# Misc
misc/ @gnolang/tech-staff
misc/loop @moul @gnolang/devops
misc/deployments @moul @gnolang/devops
misc/genstd @thehowl
#...

# Special files.
PLAN.md @jaekwon @moul
PHILOSOPHY.md @jaekwon @moul
CONTRIBUTING.md @jaekwon @moul
LICENSE.md @jaekwon @moul
PHILOSOPHY.md @jaekwon
CONTRIBUTING.md @jaekwon @moul @gnolang/tech-staff
LICENSE.md @jaekwon
.github/ @moul @gnolang/tech-staff
.github/CODEOWNERS @jaekwon @moul
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@ updates:
interval: weekly
labels:
- "dependencies"
groups:
golang-x:
patterns:
- "golang.org/x/*"
dbs:
patterns:
- "github.com/linxGnu/grocksdb"
- "go.etcd.io/bbolt"
- "github.com/dgraph-io/badger/v3"
everything-else:
patterns:
- "*"
open-pull-requests-limit: 10
pull-request-branch-name:
separator: "-"
Expand Down
3 changes: 3 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@

":package: :mountain: gno.land":
- "gno.land/**/*"

":book: documentation":
- docs/**/*"
4 changes: 4 additions & 0 deletions .github/workflows/dependabot-tidy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
tidy_go_mods:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -36,6 +38,8 @@ jobs:
- name: Commit changes, if any
uses: stefanzweifel/git-auto-commit-action@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
skip_dirty_check: false # Enable dirty check, and skip unnecessary committing
commit_message: "Run 'go mod tidy' via GitHub Actions"
38 changes: 37 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,18 @@ To use *gofumpt* instead of *gofmt*, as hinted in the comment, you may either ha
cexpr system('go run -modfile </path/to/gno>/misc/devdeps/go.mod mvdan.cc/gofumpt -w ' . expand('%'))
```

##### ViM Linting Support

To integrate GNO linting in Vim, you can use Vim's `:make` command with a custom `makeprg` and `errorformat` to run the GNO linter and parse its output. Add the following configuration to your `.vimrc` file:

```vim
autocmd FileType gno setlocal makeprg=gno\ lint\ %
autocmd FileType gno setlocal errorformat=%f:%l:\ %m
" Optional: Key binding to run :make on the current file
autocmd FileType gno nnoremap <buffer> <F5> :make<CR>
```

### ViM Support (with LSP)

There is an experimental and unofficial [Gno Language Server](https://github.com/jdkato/gnols)
Expand Down Expand Up @@ -172,7 +184,31 @@ Additionally, it's not possible to use `gofumpt` for code formatting with
2. Add to your emacs configuration file:

```lisp
(add-to-list 'auto-mode-alist '("\\.gno\\'" . go-mode))
(define-derived-mode gno-mode go-mode "GNO"
"Major mode for GNO files, an alias for go-mode."
(setq-local tab-width 8))
(define-derived-mode gno-dot-mod-mode go-dot-mod-mode "GNO Mod"
"Major mode for GNO mod files, an alias for go-dot-mod-mode."
)
```

3. To integrate GNO linting with Flycheck, add the following to your Emacs configuration:
```lisp
(require 'flycheck)
(flycheck-define-checker gno-lint
"A GNO syntax checker using the gno lint tool."
:command ("gno" "lint" source-original)
:error-patterns (;; ./file.gno:32: error message (code=1)
(error line-start (file-name) ":" line ": " (message) " (code=" (id (one-or-more digit)) ")." line-end))
;; Ensure the file is saved, to work around
;; https://github.com/python/mypy/issues/4746.
:predicate (lambda ()
(and (not (bound-and-true-p polymode-mode))
(flycheck-buffer-saved-p)))
:modes gno-mode)
(add-to-list 'flycheck-checkers 'gno-lint)
```

#### Sublime Text
Expand Down
6 changes: 5 additions & 1 deletion PHILOSOPHY.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@
## CLI Philosophy

* No envs.
* No short flags.
* No short flags, with the following exceptions:
* `-h` for showing help
* `-v` for being verbose
* mimicking the short flags of Go commands
* after software maturity
* No /bin/ calls.
* No process forks.
* Struct-based command options.
Expand Down
14 changes: 7 additions & 7 deletions contribs/gnodev/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ replace github.com/gnolang/gno => ../..
require (
github.com/fsnotify/fsnotify v1.7.0
github.com/gnolang/gno v0.0.0-00010101000000-000000000000
golang.org/x/term v0.15.0
golang.org/x/term v0.16.0
)

require (
Expand All @@ -18,7 +18,7 @@ require (
github.com/cockroachdb/apd/v3 v3.2.1 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect
github.com/dgraph-io/badger/v3 v3.2103.4 // indirect
github.com/dgraph-io/badger/v3 v3.2103.5 // indirect
github.com/dgraph-io/ristretto v0.1.1 // indirect
github.com/dustin/go-humanize v1.0.0 // indirect
github.com/gnolang/goleveldb v0.0.9 // indirect
Expand All @@ -38,7 +38,7 @@ require (
github.com/jmhodges/levigo v1.0.0 // indirect
github.com/klauspost/compress v1.12.3 // indirect
github.com/libp2p/go-buffer-pool v0.1.0 // indirect
github.com/linxGnu/grocksdb v1.8.5 // indirect
github.com/linxGnu/grocksdb v1.8.11 // indirect
github.com/pelletier/go-toml v1.9.5 // indirect
github.com/peterbourgon/ff/v3 v3.4.0 // indirect
github.com/pkg/errors v0.9.1 // indirect
Expand All @@ -50,11 +50,11 @@ require (
go.etcd.io/bbolt v1.3.8 // indirect
go.opencensus.io v0.22.5 // indirect
go.uber.org/multierr v1.10.0 // indirect
golang.org/x/crypto v0.15.0 // indirect
golang.org/x/crypto v0.18.0 // indirect
golang.org/x/mod v0.14.0 // indirect
golang.org/x/net v0.17.0 // indirect
golang.org/x/sys v0.15.0 // indirect
golang.org/x/tools v0.13.0 // indirect
golang.org/x/net v0.20.0 // indirect
golang.org/x/sys v0.16.0 // indirect
golang.org/x/tools v0.17.0 // indirect
google.golang.org/protobuf v1.31.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
28 changes: 14 additions & 14 deletions contribs/gnodev/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions contribs/gnokeykc/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ require (
github.com/cespare/xxhash/v2 v2.1.1 // indirect
github.com/danieljoos/wincred v1.2.0 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect
github.com/dgraph-io/badger/v3 v3.2103.4 // indirect
github.com/dgraph-io/badger/v3 v3.2103.5 // indirect
github.com/dgraph-io/ristretto v0.1.1 // indirect
github.com/dustin/go-humanize v1.0.0 // indirect
github.com/gnolang/goleveldb v0.0.9 // indirect
Expand All @@ -33,18 +33,18 @@ require (
github.com/jmhodges/levigo v1.0.0 // indirect
github.com/klauspost/compress v1.12.3 // indirect
github.com/libp2p/go-buffer-pool v0.1.0 // indirect
github.com/linxGnu/grocksdb v1.8.5 // indirect
github.com/linxGnu/grocksdb v1.8.11 // indirect
github.com/pelletier/go-toml v1.9.5 // indirect
github.com/peterbourgon/ff/v3 v3.4.0 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/rs/cors v1.10.1 // indirect
github.com/tecbot/gorocksdb v0.0.0-20191217155057-f0fad39f321c // indirect
go.etcd.io/bbolt v1.3.8 // indirect
go.opencensus.io v0.22.5 // indirect
golang.org/x/crypto v0.15.0 // indirect
golang.org/x/crypto v0.18.0 // indirect
golang.org/x/mod v0.14.0 // indirect
golang.org/x/net v0.17.0 // indirect
golang.org/x/sys v0.14.0 // indirect
golang.org/x/term v0.14.0 // indirect
golang.org/x/net v0.20.0 // indirect
golang.org/x/sys v0.16.0 // indirect
golang.org/x/term v0.16.0 // indirect
google.golang.org/protobuf v1.31.0 // indirect
)
Loading

0 comments on commit cc14f6d

Please sign in to comment.