Skip to content

Commit

Permalink
fix: Revert "feat: add p/nestedpkg (#2342)" (#2525)
Browse files Browse the repository at this point in the history
## Description

This PR reverts commit 77ceda4, #2342, because of a cyclic `gno.mod`
import that's causing the node to not be able to generate genesis
transactions and start.

<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
- [ ] Provided any useful hints for running manual tests
- [ ] 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>
  • Loading branch information
zivkovicmilos committed Jul 6, 2024
1 parent a825344 commit 25d746f
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 179 deletions.
3 changes: 0 additions & 3 deletions examples/gno.land/p/demo/nestedpkg/gno.mod

This file was deleted.

84 changes: 0 additions & 84 deletions examples/gno.land/p/demo/nestedpkg/nestedpkg.gno

This file was deleted.

75 changes: 0 additions & 75 deletions examples/gno.land/p/demo/nestedpkg/nestedpkg_test.gno

This file was deleted.

5 changes: 1 addition & 4 deletions examples/gno.land/r/demo/tests/gno.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
module gno.land/r/demo/tests

require (
gno.land/p/demo/nestedpkg v0.0.0-latest
gno.land/r/demo/tests/subtests v0.0.0-latest
)
require gno.land/r/demo/tests/subtests v0.0.0-latest
13 changes: 0 additions & 13 deletions examples/gno.land/r/demo/tests/tests.gno
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package tests
import (
"std"

"gno.land/p/demo/nestedpkg"
rsubtests "gno.land/r/demo/tests/subtests"
)

Expand Down Expand Up @@ -100,15 +99,3 @@ func GetRSubtestsPrevRealm() std.Realm {
func Exec(fn func()) {
fn()
}

func IsCallerSubPath() bool {
return nestedpkg.IsCallerSubPath()
}

func IsCallerParentPath() bool {
return nestedpkg.IsCallerParentPath()
}

func HasCallerSameNamespace() bool {
return nestedpkg.IsSameNamespace()
}

0 comments on commit 25d746f

Please sign in to comment.