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

pkgx uninstall fails if pantry is not downloaded yet #1004

Open
felipecrs opened this issue May 7, 2024 · 1 comment
Open

pkgx uninstall fails if pantry is not downloaded yet #1004

felipecrs opened this issue May 7, 2024 · 1 comment

Comments

@felipecrs
Copy link
Contributor

I believe it should download the pantry on the fly.

❯ docker run --rm -it --entrypoint= ghcr.io/felipecrs/devcontainer:2 pkgx uninstall volta
× pantry error pantry not found: /home/devcontainer/.local/share/pkgx/pantry/projects
│
╰─➤ https://docs.pkgx.sh/help/pantry-error
Copy link

dosubot bot commented May 7, 2024

To address the issue where pkgx uninstall fails due to the pantry not being downloaded, you can precede the uninstall command with pkgx --sync. This command ensures the pantry is updated and any necessary packages are downloaded, thus avoiding the pantry error. Here's how you can integrate this into your workflow:

  1. Before attempting to uninstall with pkgx, run:
    pkgx --sync
  2. Once the pantry is synced, proceed with your uninstall command as initially intended.

This approach leverages pkgx's functionality to keep the pantry up to date, ensuring smooth package management operations without encountering errors related to missing pantry data.

Details

Sources


About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

To continue the conversation, mention @dosu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant