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

gno.mod file support #462

Open
14 of 16 tasks
moul opened this issue Jan 16, 2023 · 2 comments · Fixed by #479
Open
14 of 16 tasks

gno.mod file support #462

moul opened this issue Jan 16, 2023 · 2 comments · Fixed by #479
Assignees
Labels
🌱 feature New update to Gno

Comments

@moul
Copy link
Member

moul commented Jan 16, 2023

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 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)
  • Support replacing module with another module
  • Fetch indirect dependencies (fetched modules)
  • Fill dependencies in go.mod (fetched modules)
  • Support gno mod init
  • utilize ~/.gno. GNOPATH?
  • make remote dynamic
  • caching and checksum

Related PRs

#344, #479, #524, #533, #553, #602, #652

@moul moul added the 🌱 feature New update to Gno label Jan 20, 2023
@harry-hov harry-hov mentioned this issue Jan 25, 2023
13 tasks
@moul moul mentioned this issue Jan 25, 2023
4 tasks
@moul moul closed this as completed in #479 Feb 15, 2023
@harry-hov harry-hov reopened this Feb 20, 2023
@harry-hov
Copy link
Contributor

Reopened this issue to track the progress.

@moul
Copy link
Member Author

moul commented Feb 20, 2023

Related with #522 and #526

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌱 feature New update to Gno
Projects
Status: 🌟 Wanted for Launch
Development

Successfully merging a pull request may close this issue.

2 participants