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

Provide a way to force a refresh of the registry index #1320

Open
natefaubion opened this issue Jan 26, 2025 · 3 comments
Open

Provide a way to force a refresh of the registry index #1320

natefaubion opened this issue Jan 26, 2025 · 3 comments

Comments

@natefaubion
Copy link

As a user it's not obvious to me how spago manages it's internal registry index. If I need a newly published version of a library, even when explicitly declaring it's version, spago will refuse to install it until it also decides it should refresh it's index. This is a frustrating experience, and it would be nice to have some control over this process.

@natefaubion
Copy link
Author

It seems like this option is supported internally as OnlineBypassCache, but I don't think this is exposed as any sort of CLI option.

@f-f
Copy link
Member

f-f commented Jan 31, 2025

Agreed, we should expose this with a flag. OnlineBypassCache was recently added (together with the registry transfer command), so we didn't get around to exposing this yet.

@f-f f-f added this to the spago-next beta bugs milestone Jan 31, 2025
@natefaubion
Copy link
Author

natefaubion commented Feb 16, 2025

I'm interested in adding this as I'm hitting the issue very frequently, but just adding a parser for this flag isn't enough, I don't think. I ran an install --ensure-ranges --bypass-cache, and it just seems to be pulling the registry over and over again in a loop 😄. I'm assuming it's doing this for every package as it attempts to make some sort of build plan.

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

No branches or pull requests

2 participants