-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Possible issue on windows with wrong environment content #81
Comments
Dang, that's a tricky one. I will dig into this and see if I can't figure it out (I'll jump into this as soon as I can). The missing dependencies is certainly strange to me. I don't have access to a Windows machine personally, so I'll probably begin by increasing the hatch and hatch-pip-compile verbosity to see if I can't detect an obvious error. |
Your project wouldn't be affected since it's not using constraint environments, but I have seen some regression issues on hatch >= 1.10.x. I also wonder what happens if you try to use I'm trying to resolve these issues as fast as I can and get testing for 1.10 and 1.11 (both less than 3 weeks old at this point), but if that resolves your issue it would certainly make a fix more urgent. |
Thanks for your quick response. I set hatch to |
Yeah, that's definitely the case here. You have Behind the scenes hatch-pip-compile calls with self.environment.safe_activation():
self.environment.install_dependencies() As a side note, using |
Okay, thanks. So I changed the
I get these errors but the command nonetheless completes successfully:
Any idea why those errors are shown? But now Github CI/CD works :-) Thanks a lot for your help! |
Yes! I do actually know this one, it's related to this: #46 (it's a non-issue but annoying nonetheless) Basically the hatch workflow is to install the package first and then the dependencies. This is a little tricky with |
The fact that |
Thanks, got it. So this is completely intended and you could suppress it by setting stderr to subprocess.DEVNULL? |
Hi @juftin, thanks for your cool work on hatch-pip-compile.
I just started to migrate some of my hatch projects to hatch + hatch-pip-compile but on Github CI Windows systems I am running into the problem that hatch seems to build different venvs compared to Linux/Macos, most pkgs are missing. Find the details here, especially
hatch run pip list
command in theRun tests and track coverage step
.I tried already many things like installing hatch with pipx and installing hatch with pip, which leads on Windows to an error
Find the details here.
Do you have any idea what the problem might be and where to look into? Everything is fine on Linux and MacOS and I am running out of ideas here. Thank you :-)
The text was updated successfully, but these errors were encountered: