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

restricted internet access environment - error running goals #21858

Open
benhason1 opened this issue Jan 19, 2025 · 1 comment
Open

restricted internet access environment - error running goals #21858

benhason1 opened this issue Jan 19, 2025 · 1 comment

Comments

@benhason1
Copy link

benhason1 commented Jan 19, 2025

Hi,I’m working in a company which have restricted access to the internet.
I’m trying to make a small python project with formatter and linter.
I configured everything I can to access local repository(pex-tool, pypi repositories etc..) and when I’m doing pants run python/main.py everything runs fine.
But when I’m trying to run pants lint :: I’m getting error that it’s trying to install some packages (from the lock file of black - files.pythonhosted.org … ) and I can’t see anywhere I can override it..
I would like some help if someone tackled it before

@benhason1 benhason1 changed the title restricted internet access environment error running goals restricted internet access environment - error running goals Jan 19, 2025
@benjyw
Copy link
Contributor

benjyw commented Jan 20, 2025

You’ll need to generate a custom lockfile for black, that uses custom repositories. See here for details.

You’ll need to do this for all your tools, so you may prefer to have one big lockfile for all of them, and point all the tool subsystems to that lockfile.

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

2 participants