Skip to content

fix: create registry cache directory if it doesn't exist #28700

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

Closed
wants to merge 1 commit into from

Conversation

anstylian
Copy link
Contributor

Motivation

The directory ~/.aleo/registry/testnet/ is used to store files downloaded from the Aleo network. When Aleo programs with dependencies are built, they attempt to fetch and store these dependencies in the registry directory. If ~/.aleo/registry/testnet/ does not exist, the process fails to store the fetched programs, resulting in build failures for any project with dependencies. This PR ensures the required registry directory exists, preventing such failures and improving the robustness and developer experience of Aleo projects relying on external packages.

I use ~/.aleo/registry/testnet/ because I am using the testnet network.

The error:

Error [EUTL03710000]: File system io error: Could not open file `~/.aleo/registry/testnet/dependency.aleo`. Error: No such file or directory (os error 2)

@mikebenfield
Copy link
Collaborator

Thanks! LGTM. I need to make another PR to merge it, so I'm closing this PR in favor of #28708 (you're still listed as author).

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

Successfully merging this pull request may close these issues.

2 participants