Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@aldlss
Copy link
Contributor

@aldlss aldlss commented Aug 19, 2025

I’m the author of the post referenced in #4226. Thanks for noticing and addressing this issue.

However, the current fix doesn’t work on my side, likely because:

  • Both uv sync
    .args(["sync", "--upgrade", "--managed-python", "--no-config"]);
    and uv run versions.py
    .args(["run", "--no-project", "--no-config", "--managed-python"])
    are invoked with --no-config, so the mirror settings in the config file are ignored (main cause).
  • uv run versions.py downloads the Python interpreter before the mirror settings have been written to the config file.

Using environment variables to configure the mirror would work better in this flow. I’ve tested this locally and can confirm it resolves the issue for me.

@dae
Copy link
Member

dae commented Sep 1, 2025

Thank you for looking into this. Unfortunately, there's a conflict on the CONTRIBUTORS file. Could I trouble you to rebase over the latest main, so I can merge this in?

@dae dae added the launcher Related to Anki's installer/launcher (qt/launcher) label Sep 1, 2025
Use environment variable instead of configuration file
@aldlss
Copy link
Contributor Author

aldlss commented Sep 1, 2025

Thank you for looking into this. Unfortunately, there's a conflict on the CONTRIBUTORS file. Could I trouble you to rebase over the latest main, so I can merge this in?

Rebased onto the latest main and resolved the CONTRIBUTORS conflict. Thanks!

@dae
Copy link
Member

dae commented Sep 2, 2025

Thank you!

@dae dae merged commit 157da4c into ankitects:main Sep 2, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

launcher Related to Anki's installer/launcher (qt/launcher)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants