-
Notifications
You must be signed in to change notification settings - Fork 398
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
[chain] Unable to deploy module with a single top-level gno.mod
, with multiple sub-packages without gno.mod
s
#2141
Comments
I suggest we adapt our communication and guidelines to distinguish between
Sure, here's an improved version of that text: For example, you can have On other Gno-powered chains, this distinction might not be necessary, but on the Gno.land blockchain, we offer both source-code hosting ( We should update Gnoweb to reflect these differences in interfaces:
This means you can have a single It also means that I or someone else might want to import |
This should be mostly tackled by the #2932 |
Unable to deploy module with a single top-level
gno.mod
, with multiple sub-packages withoutgno.mod
sDescription
Gno currently does not support deploying a Gno module (with a single top-level
gno.mod
) and multiple sub-packages, which a super common Go library structure:. └── bug/ ├── gno.mod ├── a.gno ├── b/ │ └── b.gno └── c/ └── c.gno
Instead, to deploy this package to the chain, each subfolder requires its own
gno.mod
, even though this is a perfectly normal scenario and structure in standard Go.Top level
gno.mod
:a.gno:
b/b.gno:
c/c.gno:
Your environment
macOS Sonoma 14.5
aa2a0da
(master
)Steps to reproduce
gnodev
against it, orgno lint
, or deploying it withgnokey
gnodev .
from the downloaded example bug foldergno lint --v .
from the downloaded example bug folderExpected behavior
The package should be deployed, even though each sub-package does not have a
gno.mod
Actual behavior
Each sub-package (folder) requires its own
gno.mod
, and these need to be referenced in the top-levelgno.mod
Logs
Running
gno lint --v .
:Gnodev:
Proposed solution
Not sure what would be the solution right off the bat.
Adding individual
gno.mod
s to each sub-folder (package), and runninggno mod tidy
from the top-level directory (which adds the requirements) fixes the problem, but this shouldn't need to happen in the first placecc @ajnavarro @gfanton @moul
The text was updated successfully, but these errors were encountered: