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

[RFC][WIP] feat: implement versioning #1631

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions examples/gno.land/p/demo/acl/gno.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module gno.land/p/demo/acl
module gno.land/p/demo/acl v0.1.0

require (
gno.land/p/demo/avl v0.0.0-latest
gno.land/p/demo/testutils v0.0.0-latest
gno.land/p/demo/avl v0.1.0
gno.land/p/demo/testutils v0.1.0
)
2 changes: 1 addition & 1 deletion examples/gno.land/p/demo/avl/gno.mod
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module gno.land/p/demo/avl
module gno.land/p/demo/avl v0.1.0
2 changes: 1 addition & 1 deletion examples/gno.land/p/demo/bank/gno.mod
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module gno.land/p/demo/bank
module gno.land/p/demo/bank v0.1.0
2 changes: 1 addition & 1 deletion examples/gno.land/p/demo/bf/gno.mod
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module gno.land/p/demo/bf
module gno.land/p/demo/bf v0.1.0
8 changes: 4 additions & 4 deletions examples/gno.land/p/demo/blog/gno.mod
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module gno.land/p/demo/blog
module gno.land/p/demo/blog v0.1.0

require (
gno.land/p/demo/avl v0.0.0-latest
gno.land/p/demo/mux v0.0.0-latest
gno.land/p/demo/ufmt v0.0.0-latest
gno.land/p/demo/avl v0.1.0
gno.land/p/demo/mux v0.1.0
gno.land/p/demo/ufmt v0.1.0
)
2 changes: 1 addition & 1 deletion examples/gno.land/p/demo/cford32/gno.mod
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module gno.land/p/demo/cford32
module gno.land/p/demo/cford32 v0.1.0
4 changes: 2 additions & 2 deletions examples/gno.land/p/demo/dom/gno.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module gno.land/p/demo/dom
module gno.land/p/demo/dom v0.1.0

require gno.land/p/demo/avl v0.0.0-latest
require gno.land/p/demo/avl v0.1.0
2 changes: 1 addition & 1 deletion examples/gno.land/p/demo/flow/gno.mod
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module gno.land/p/demo/flow
module gno.land/p/demo/flow v0.1.0
2 changes: 1 addition & 1 deletion examples/gno.land/p/demo/gnode/gno.mod
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module gno.land/p/demo/gnode
module gno.land/p/demo/gnode v0.1.0
2 changes: 1 addition & 1 deletion examples/gno.land/p/demo/grc/exts/gno.mod
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module gno.land/p/demo/grc/exts
module gno.land/p/demo/grc/exts v0.1.0
6 changes: 3 additions & 3 deletions examples/gno.land/p/demo/grc/exts/vault/gno.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module gno.land/p/demo/grc/exts/vault
module gno.land/p/demo/grc/exts/vault v0.1.0

require (
gno.land/p/demo/avl v0.0.0-latest
gno.land/p/demo/grc/grc20 v0.0.0-latest
gno.land/p/demo/avl v0.1.0
gno.land/p/demo/grc/grc20 v0.1.0
)
8 changes: 4 additions & 4 deletions examples/gno.land/p/demo/grc/grc1155/gno.mod
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module gno.land/p/demo/grc/grc1155
module gno.land/p/demo/grc/grc1155 v0.1.0

require (
gno.land/p/demo/avl v0.0.0-latest
gno.land/p/demo/ufmt v0.0.0-latest
gno.land/p/demo/users v0.0.0-latest
gno.land/p/demo/avl v0.1.0
gno.land/p/demo/ufmt v0.1.0
gno.land/p/demo/users v0.1.0
)
8 changes: 4 additions & 4 deletions examples/gno.land/p/demo/grc/grc20/gno.mod
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module gno.land/p/demo/grc/grc20
module gno.land/p/demo/grc/grc20 v0.1.0

require (
gno.land/p/demo/avl v0.0.0-latest
gno.land/p/demo/grc/exts v0.0.0-latest
gno.land/p/demo/ufmt v0.0.0-latest
gno.land/p/demo/avl v0.1.0
gno.land/p/demo/grc/exts v0.1.0
gno.land/p/demo/ufmt v0.1.0
)
10 changes: 5 additions & 5 deletions examples/gno.land/p/demo/grc/grc721/gno.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module gno.land/p/demo/grc/grc721
module gno.land/p/demo/grc/grc721 v0.1.0

require (
gno.land/p/demo/avl v0.0.0-latest
gno.land/p/demo/testutils v0.0.0-latest
gno.land/p/demo/ufmt v0.0.0-latest
gno.land/p/demo/users v0.0.0-latest
gno.land/p/demo/avl v0.1.0
gno.land/p/demo/testutils v0.1.0
gno.land/p/demo/ufmt v0.1.0
gno.land/p/demo/users v0.1.0
)
4 changes: 2 additions & 2 deletions examples/gno.land/p/demo/grc/grc777/gno.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module gno.land/p/demo/grc/grc777
module gno.land/p/demo/grc/grc777 v0.1.0

require gno.land/p/demo/grc/exts v0.0.0-latest
require gno.land/p/demo/grc/exts v0.1.0
6 changes: 3 additions & 3 deletions examples/gno.land/p/demo/groups/gno.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module gno.land/p/demo/groups
module gno.land/p/demo/groups v0.1.0

require (
gno.land/p/demo/maths v0.0.0-latest
gno.land/r/demo/boards v0.0.0-latest
gno.land/p/demo/maths v0.1.0
gno.land/r/demo/boards v0.1.0
)
4 changes: 2 additions & 2 deletions examples/gno.land/p/demo/math_eval/int32/gno.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module gno.land/p/demo/math_eval/int32
module gno.land/p/demo/math_eval/int32 v0.1.0

require gno.land/p/demo/ufmt v0.0.0-latest
require gno.land/p/demo/ufmt v0.1.0
2 changes: 1 addition & 1 deletion examples/gno.land/p/demo/maths/gno.mod
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module gno.land/p/demo/maths
module gno.land/p/demo/maths v0.1.0
2 changes: 1 addition & 1 deletion examples/gno.land/p/demo/merkle/gno.mod
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module gno.land/p/demo/merkle
module gno.land/p/demo/merkle v0.1.0
6 changes: 3 additions & 3 deletions examples/gno.land/p/demo/microblog/gno.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module gno.land/p/demo/microblog
module gno.land/p/demo/microblog v0.1.0

require (
gno.land/p/demo/avl v0.0.0-latest
gno.land/p/demo/ufmt v0.0.0-latest
gno.land/p/demo/avl v0.1.0
gno.land/p/demo/ufmt v0.1.0
)
2 changes: 1 addition & 1 deletion examples/gno.land/p/demo/mux/gno.mod
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module gno.land/p/demo/mux
module gno.land/p/demo/mux v0.1.0
2 changes: 1 addition & 1 deletion examples/gno.land/p/demo/ownable/gno.mod
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module gno.land/p/demo/ownable
module gno.land/p/demo/ownable v0.1.0
4 changes: 2 additions & 2 deletions examples/gno.land/p/demo/pausable/gno.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module gno.land/p/demo/pausable
module gno.land/p/demo/pausable v0.1.0

require gno.land/p/demo/ownable v0.0.0-latest
require gno.land/p/demo/ownable v0.1.0
2 changes: 1 addition & 1 deletion examples/gno.land/p/demo/rand/gno.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// Draft

module gno.land/p/demo/rand
module gno.land/p/demo/rand v0.1.0
2 changes: 1 addition & 1 deletion examples/gno.land/p/demo/releases/gno.mod
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module gno.land/p/demo/releases
module gno.land/p/demo/releases v0.1.0
4 changes: 2 additions & 2 deletions examples/gno.land/p/demo/seqid/gno.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module gno.land/p/demo/seqid
module gno.land/p/demo/seqid v0.1.0

require gno.land/p/demo/cford32 v0.0.0-latest
require gno.land/p/demo/cford32 v0.1.0
2 changes: 1 addition & 1 deletion examples/gno.land/p/demo/stack/gno.mod
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module gno.land/p/demo/stack
module gno.land/p/demo/stack v0.1.0
4 changes: 2 additions & 2 deletions examples/gno.land/p/demo/svg/gno.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module gno.land/p/demo/svg
module gno.land/p/demo/svg v0.1.0

require gno.land/p/demo/ufmt v0.0.0-latest
require gno.land/p/demo/ufmt v0.1.0
4 changes: 2 additions & 2 deletions examples/gno.land/p/demo/tamagotchi/gno.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module gno.land/p/demo/tamagotchi
module gno.land/p/demo/tamagotchi v0.1.0

require gno.land/p/demo/ufmt v0.0.0-latest
require gno.land/p/demo/ufmt v0.1.0
6 changes: 3 additions & 3 deletions examples/gno.land/p/demo/tests/gno.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module gno.land/p/demo/tests
module gno.land/p/demo/tests v0.1.0

require (
gno.land/p/demo/tests/subtests v0.0.0-latest
gno.land/r/demo/tests v0.0.0-latest
gno.land/p/demo/tests/subtests v0.1.0
gno.land/r/demo/tests v0.1.0
)
2 changes: 1 addition & 1 deletion examples/gno.land/p/demo/tests/subtests/gno.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module gno.land/p/demo/tests/subtests
module gno.land/p/demo/tests/subtests v0.1.0

// TODO: this file should not exist.
// This is a temporary workaround. Until https://github.com/gnolang/gno/issues/852
2 changes: 1 addition & 1 deletion examples/gno.land/p/demo/testutils/gno.mod
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module gno.land/p/demo/testutils
module gno.land/p/demo/testutils v0.1.0
2 changes: 1 addition & 1 deletion examples/gno.land/p/demo/ufmt/gno.mod
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module gno.land/p/demo/ufmt
module gno.land/p/demo/ufmt v0.1.0
2 changes: 1 addition & 1 deletion examples/gno.land/p/demo/ui/gno.mod
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module gno.land/p/demo/ui
module gno.land/p/demo/ui v0.1.0
2 changes: 1 addition & 1 deletion examples/gno.land/p/demo/users/gno.mod
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module gno.land/p/demo/users
module gno.land/p/demo/users v0.1.0
6 changes: 3 additions & 3 deletions examples/gno.land/r/demo/art/gnoface/gno.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module gno.land/r/demo/art/gnoface
module gno.land/r/demo/art/gnoface v0.1.0

require (
gno.land/p/demo/rand v0.0.0-latest
gno.land/p/demo/ufmt v0.0.0-latest
gno.land/p/demo/rand v0.1.0
gno.land/p/demo/ufmt v0.1.0
)
4 changes: 2 additions & 2 deletions examples/gno.land/r/demo/art/millipede/gno.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module gno.land/r/demo/art/millipede
module gno.land/r/demo/art/millipede v0.1.0

require gno.land/p/demo/ufmt v0.0.0-latest
require gno.land/p/demo/ufmt v0.1.0
2 changes: 1 addition & 1 deletion examples/gno.land/r/demo/banktest/gno.mod
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module gno.land/r/demo/banktest
module gno.land/r/demo/banktest v0.1.0
6 changes: 3 additions & 3 deletions examples/gno.land/r/demo/boards/gno.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module gno.land/r/demo/boards
module gno.land/r/demo/boards v0.1.0

require (
gno.land/p/demo/avl v0.0.0-latest
gno.land/r/demo/users v0.0.0-latest
gno.land/p/demo/avl v0.1.0
gno.land/r/demo/users v0.1.0
)
2 changes: 1 addition & 1 deletion examples/gno.land/r/demo/deep/very/deep/gno.mod
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module gno.land/r/demo/deep/very/deep
module gno.land/r/demo/deep/very/deep v0.1.0
10 changes: 5 additions & 5 deletions examples/gno.land/r/demo/foo1155/gno.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module gno.land/r/demo/foo1155
module gno.land/r/demo/foo1155 v0.1.0

require (
gno.land/p/demo/grc/grc1155 v0.0.0-latest
gno.land/p/demo/ufmt v0.0.0-latest
gno.land/p/demo/users v0.0.0-latest
gno.land/r/demo/users v0.0.0-latest
gno.land/p/demo/grc/grc1155 v0.1.0
gno.land/p/demo/ufmt v0.1.0
gno.land/p/demo/users v0.1.0
gno.land/r/demo/users v0.1.0
)
10 changes: 5 additions & 5 deletions examples/gno.land/r/demo/foo20/gno.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module gno.land/r/demo/foo20
module gno.land/r/demo/foo20 v0.1.0

require (
gno.land/p/demo/grc/grc20 v0.0.0-latest
gno.land/p/demo/ufmt v0.0.0-latest
gno.land/p/demo/users v0.0.0-latest
gno.land/r/demo/users v0.0.0-latest
gno.land/p/demo/grc/grc20 v0.1.0
gno.land/p/demo/ufmt v0.1.0
gno.land/p/demo/users v0.1.0
gno.land/r/demo/users v0.1.0
)
10 changes: 5 additions & 5 deletions examples/gno.land/r/demo/foo721/gno.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module gno.land/r/demo/foo721
module gno.land/r/demo/foo721 v0.1.0

require (
gno.land/p/demo/grc/grc721 v0.0.0-latest
gno.land/p/demo/ufmt v0.0.0-latest
gno.land/p/demo/users v0.0.0-latest
gno.land/r/demo/users v0.0.0-latest
gno.land/p/demo/grc/grc721 v0.1.0
gno.land/p/demo/ufmt v0.1.0
gno.land/p/demo/users v0.1.0
gno.land/r/demo/users v0.1.0
)
6 changes: 3 additions & 3 deletions examples/gno.land/r/demo/groups/gno.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module gno.land/r/demo/groups
module gno.land/r/demo/groups v0.1.0

require (
gno.land/p/demo/avl v0.0.0-latest
gno.land/r/demo/users v0.0.0-latest
gno.land/p/demo/avl v0.1.0
gno.land/r/demo/users v0.1.0
)
8 changes: 4 additions & 4 deletions examples/gno.land/r/demo/keystore/gno.mod
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module gno.land/r/demo/keystore
module gno.land/r/demo/keystore v0.1.0

require (
gno.land/p/demo/avl v0.0.0-latest
gno.land/p/demo/testutils v0.0.0-latest
gno.land/p/demo/ufmt v0.0.0-latest
gno.land/p/demo/avl v0.1.0
gno.land/p/demo/testutils v0.1.0
gno.land/p/demo/ufmt v0.1.0
)
2 changes: 1 addition & 1 deletion examples/gno.land/r/demo/markdown_test/gno.mod
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module gno.land/r/demo/markdown_test
module gno.land/r/demo/markdown_test v0.1.0
6 changes: 3 additions & 3 deletions examples/gno.land/r/demo/math_eval/gno.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module gno.land/r/demo/math_eval
module gno.land/r/demo/math_eval v0.1.0

require (
gno.land/p/demo/math_eval/int32 v0.0.0-latest
gno.land/p/demo/ufmt v0.0.0-latest
gno.land/p/demo/math_eval/int32 v0.1.0
gno.land/p/demo/ufmt v0.1.0
)
12 changes: 6 additions & 6 deletions examples/gno.land/r/demo/microblog/gno.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module gno.land/r/demo/microblog
module gno.land/r/demo/microblog v0.1.0

require (
gno.land/p/demo/avl v0.0.0-latest
gno.land/p/demo/microblog v0.0.0-latest
gno.land/p/demo/testutils v0.0.0-latest
gno.land/p/demo/ufmt v0.0.0-latest
gno.land/r/demo/users v0.0.0-latest
gno.land/p/demo/avl v0.1.0
gno.land/p/demo/microblog v0.1.0
gno.land/p/demo/testutils v0.1.0
gno.land/p/demo/ufmt v0.1.0
gno.land/r/demo/users v0.1.0
)
6 changes: 3 additions & 3 deletions examples/gno.land/r/demo/nft/gno.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module gno.land/r/demo/nft
module gno.land/r/demo/nft v0.1.0

require (
gno.land/p/demo/avl v0.0.0-latest
gno.land/p/demo/grc/grc721 v0.0.0-latest
gno.land/p/demo/avl v0.1.0
gno.land/p/demo/grc/grc721 v0.1.0
)
4 changes: 2 additions & 2 deletions examples/gno.land/r/demo/releases_example/gno.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module gno.land/r/demo/releases_example
module gno.land/r/demo/releases_example v0.1.0

require gno.land/p/demo/releases v0.0.0-latest
require gno.land/p/demo/releases v0.1.0
6 changes: 3 additions & 3 deletions examples/gno.land/r/demo/tamagotchi/gno.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module gno.land/r/demo/tamagotchi
module gno.land/r/demo/tamagotchi v0.1.0

require (
gno.land/p/demo/tamagotchi v0.0.0-latest
gno.land/p/demo/ufmt v0.0.0-latest
gno.land/p/demo/tamagotchi v0.1.0
gno.land/p/demo/ufmt v0.1.0
)
6 changes: 3 additions & 3 deletions examples/gno.land/r/demo/tests/gno.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module gno.land/r/demo/tests
module gno.land/r/demo/tests v0.1.0

require (
gno.land/p/demo/testutils v0.0.0-latest
gno.land/r/demo/tests/subtests v0.0.0-latest
gno.land/p/demo/testutils v0.1.0
gno.land/r/demo/tests/subtests v0.1.0
)
2 changes: 1 addition & 1 deletion examples/gno.land/r/demo/tests/subtests/gno.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module gno.land/r/demo/tests/subtests
module gno.land/r/demo/tests/subtests v0.1.0

// TODO: this file should not exist.
// This is a temporary workaround. Until https://github.com/gnolang/gno/issues/852
4 changes: 2 additions & 2 deletions examples/gno.land/r/demo/tests/tests_test.gno
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ func TestAssertOriginCall(t *testing.T) {

func TestPrevRealm(t *testing.T) {
var (
user1Addr = std.DerivePkgAddr("user1.gno")
rTestsAddr = std.DerivePkgAddr("gno.land/r/demo/tests")
user1Addr = std.DerivePkgAddr("user1.gno", "")
rTestsAddr = std.DerivePkgAddr("gno.land/r/demo/tests", "v0.1.0")
)
// When a single realm in the frames, PrevRealm returns the user
if addr := GetPrevRealm().Addr(); addr != user1Addr {
Expand Down
4 changes: 2 additions & 2 deletions examples/gno.land/r/demo/tests_foo/gno.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module gno.land/r/demo/tests_foo
module gno.land/r/demo/tests_foo v0.1.0

require gno.land/r/demo/tests v0.0.0-latest
require gno.land/r/demo/tests v0.1.0
4 changes: 2 additions & 2 deletions examples/gno.land/r/demo/types/gno.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module gno.land/r/demo/types
module gno.land/r/demo/types v0.1.0

require gno.land/p/demo/avl v0.0.0-latest
require gno.land/p/demo/avl v0.1.0
4 changes: 2 additions & 2 deletions examples/gno.land/r/demo/ui/gno.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module gno.land/r/demo/ui
module gno.land/r/demo/ui v0.1.0

require gno.land/p/demo/ui v0.0.0-latest
require gno.land/p/demo/ui v0.1.0
Loading
Loading