A simple package manager for the Odin programming language.
Download the latest opkg.exe from the releases page and add it to your PATH.
Creates an odin.pkg file in the current directory.
opkg init
Clones the package from GitHub and adds it to odin.pkg.
opkg add github.com/user/repo
Reads odin.pkg and installs all dependencies. Run this after cloning a project.
opkg install
Deletes the package folder and removes it from odin.pkg.
opkg remove github.com/user/repo
When you run opkg init it creates an odin.pkg file in your project:
{
"name": "my_project",
"version": "1.0.0",
"dependencies": {
"github.com/laytan/odin-http": "main"
}
}Packages are installed into a packages/ folder in your project. Import them in your Odin code like this:
import "packages/github.com/laytan/odin-http"Add packages/ to your .gitignore so dependencies are not committed to your repo. Others can run opkg install to get them.
Contributions are welcome. Open an issue or pull request on GitHub.