You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, gnodev only supports importing contracts that are located in $gnoRepo/examples/....
The goal of gno.mod is to support additional import locations.
The first need is to support the equivalent of the replace ../ directive from go.mod.
Then, people should be able to bootstrap repos depending on their own contracts and official ones.
The second need would be to support the equivalent of go mod download and dependency caching.
Status
gnodev mod download: Fetch required modules from chain.
support require
Create go.mod from gno.mod
Create go.mod for fetched modules
Lookup for fetched modules
precompile fetched modules
Add tests (and example)
Remove duplicate require and replace
Don't fetch replace modules (if replaced by Directory)
Description
By default,
gnodev
only supports importing contracts that are located in$gnoRepo/examples/...
.The goal of
gno.mod
is to support additional import locations.The first need is to support the equivalent of the
replace ../
directive fromgo.mod
.Then, people should be able to bootstrap repos depending on their own contracts and official ones.
The second need would be to support the equivalent of
go mod download
and dependency caching.Status
gnodev mod download
: Fetch required modules from chain.require
require
andreplace
replace
modules (if replaced by Directory)gno mod init
~/.gno
.GNOPATH
?Related PRs
#344, #479, #524, #533, #553, #602, #652
The text was updated successfully, but these errors were encountered: