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

feat: package manager #985

Merged
merged 1 commit into from
May 7, 2024
Merged

feat: package manager #985

merged 1 commit into from
May 7, 2024

Conversation

sxyazi
Copy link
Owner

@sxyazi sxyazi commented May 1, 2024

A part of #914


Add a new one to package.toml then install it:

ya pack -a Reledia/glow

# If it's a sub-directory under the repository
ya pack -a yazi-rs/flavors#catppuccin-mocha 

Install all packages configured in package.toml before:

ya pack -i

Upgrade all packages configured in package.toml to the latest commit:

ya pack -u

ya pack -i will use the commit hash locked by the package.toml, and ya pack -u will automatically update the hash to the latest.

If you don't want a certain package to be updated by ya pack -u, you can specify the = qualifier to permanently lock it:

[plugin]
deps = [
  { use = "Reledia/glow", commit = "=536185a" }
]

@sxyazi sxyazi changed the title [WIP] feat: package manager feat: package manager May 7, 2024
@sxyazi sxyazi merged commit faa1d9f into main May 7, 2024
5 checks passed
@sxyazi sxyazi deleted the pr-f138756e branch May 7, 2024 05:42
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant