AkaHenry
AkaHenry
MModular
Created by Arctic on 9/15/2023 in #questions
Plans for a package manager?
@here hi, all. I have written a package management tool called Mod for Mojo (WIP). The mod new command has been implemented so far. Other commands are still under development. Feel free to join in the development if you're interested. πŸ˜„ https://github.com/better-mojo/mod https://pypi.org/project/mod-cli/
26 replies
MModular
Created by Arctic on 9/15/2023 in #questions
Plans for a package manager?
No description
26 replies
MModular
Created by Arctic on 9/15/2023 in #questions
Plans for a package manager?
No description
26 replies
MModular
Created by Arctic on 9/15/2023 in #questions
Plans for a package manager?
Mod = Mojo Dep. a Mojo Package Manager. (WIP) https://github.com/better-mojo/mod https://pypi.org/project/mod-cli/
26 replies
MModular
Created by Arctic on 9/15/2023 in #questions
Plans for a package manager?
@here
26 replies
MModular
Created by Arctic on 9/15/2023 in #questions
Plans for a package manager?
I'm writing a temporary mojo package management tool: mod (= mojo dep).
https://pypi.org/project/mod-cli/ - WIP. The implementation idea is similar to go vendor ( go early package management solution).
Here are some common commands:
1. mod init:
a. create a temporary directory called vendor/target/deps in project. (in a .gitignore file) b. create a configuration file mod.toml (similar to rust cargo.toml)
2. mod add xxx: git clone package's source codes into the vendor/ directory,
3. mod hack package xxx: build the xxx package into xxx.mojopkg, and copy it to the .modular/pkg/packages.modular.com_mojo/lib/mojo'directory. This way vscode can autocomplete it. (a hack usage)
4. mod hack remove xxx, remove xxx from .modular/pkg/packages.modular.com_mojo/lib/mojo. 5. Other commonly used commands (new, update, sync, ...)
Here's a requirement, @Chris Lattner can you temporarily support a feature: create an x directory in .modular/pkg/packages.modular.com_mojo/lib/mojo, and support searching for mojopkg in this directory, so as to avoid confusion with the mojo standard library. (x is also the directory name of the Go early storage plugin libs).
26 replies
MModular
Created by Arctic on 9/15/2023 in #questions
Plans for a package manager?
a hack usage: - Put the compiled xxx.mojopkg into the mojo standard library path to get vscode's smart completion hints. πŸ˜„
# mojo std lib dir:

/home/vscode/.modular/pkg/packages.modular.com_mojo/lib/mojo
# mojo std lib dir:

/home/vscode/.modular/pkg/packages.modular.com_mojo/lib/mojo
26 replies
MModular
Created by Arctic on 9/15/2023 in #questions
Plans for a package manager?
No description
26 replies
MModular
Created by Arctic on 9/15/2023 in #questions
Plans for a package manager?
Thanks for your reply. Looking forward to the arrival of package management tools. πŸ˜„
26 replies
MModular
Created by Arctic on 9/15/2023 in #questions
Plans for a package manager?
@Jack Clayton
26 replies
MModular
Created by ThΓ©o Pomies on 12/6/2023 in #questions
will mojo include an all in one tool like cargo
7 replies
MModular
Created by Arctic on 9/15/2023 in #questions
Plans for a package manager?
26 replies
MModular
Created by Arctic on 9/15/2023 in #questions
Plans for a package manager?
@Chris Lattner hi, Chris. Since the release of Mojo v.0.6, which is pretty awesome. Are there any plans to design a Mojo package management tool? (like rust cargo ) Personally, I think the community is in dire need of package management tools at the moment.
26 replies