-
Notifications
You must be signed in to change notification settings - Fork 312
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
Enhancement: TIUP_MIRRORS should be temporary runtime effected #651
Comments
@lonng PTAL |
@cyliu0 Thanks for this suggestion. It's a good idea to distinguish the environment variable and |
@lonng I think we should deprecate |
@lucklove It's better to keep it in 1.x and remove it at 2.x. |
I think keeping
Here Cloning might be needed due to bandwidth restrictions, (partly) offline operation, etc. |
Feature Request
Is your feature request related to a problem? Please describe:
We can set mirror via the
tiup mirror set
and environment variableTIUP_MIRRORS
. But the environment variableTIUP_MIRRORS
also will be a permanent impact on tiup. This is not a typical way to use environment variables. When I use an environment variable, I'd assume that this is a temporary runtime setup.We must use
tiup mirror set
to restore the location after we useTIUP_MIRRORS
. And if I forgot to restore the mirror location, I cannot update the manifest following the official mirror anymore. This could be a little bit tricky for users. And it might cost us some OnCall work as well.Describe the feature you'd like:
I'd like to use the
TIUP_MIRRORS
with runtime effected. WhileTIUP_MIRRORS
is empty, tiup should use the default location. For different mirror locations, it should be isolated from each other. With this feature, tiup will be much easier to use and test. And there will be no such confusion like above any more.Describe alternatives you've considered:
Teachability, Documentation, Adoption, Migration Strategy:
The text was updated successfully, but these errors were encountered: