-
-
Notifications
You must be signed in to change notification settings - Fork 212
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
listing git files failed on git repo #997
Comments
I've replicated the issue in a Linux Docker container as well, so the issue isn't peculiar to my environment. Curiously, even though I'm seeing these errors when running builds, I'm finding that files are being included that would seem to depend on git metadata, such as Lorem ipsum.txt in jaraco.text. Oh. I think I see what's happening now. |
Aha. So I've clarified my confusion. The errors are expected to be emitted. They just need not to appear during the sdist phase. The reason there were issues with the distutils build was not because of scm file finders, but because of an exclude directive. The error from setuptools_scm was a red herring. |
@jaraco , sorry but your last two comments are a little too technical for me to understand. I get this same error every time I do a build even though the build seems successful. How can I get rid of that error message? |
Because of the way setuptools is engineered, it will necessarily involve I'll move this issue to packaging-problems for consideration. |
Thanks for your reply. The message reports a big fat ERROR, not even a warning so I assumed I must have a mistake somewhere and have spent ages trying different fixes which did not change anything. It is disconcerting to see that ERROR reported so this clearly must be considered a bug. |
While troubleshooting pypa/distutils#224, I've stumbled onto another issue.
I'm running
pyproject-build .
on a number of projects, and in the output, I see the following warning for both sdist and wheel generation:This is happening across multiple projects I develop.
If I install the build requirements locally and run
py -m build --no-isolation .
and put a breakpoint in thesetuptools_scm._file_finders.git:_git_toplevel
, I see that when the error occurs, the git command is being run against a copy of the source that doesn't include the git directory. Something about the build ecosystem is causing the .git directory that I clearly cloned not to be included in the build. I tried running with some older versions of build going back to 0.9, but that didn't seem to make a difference.So far, I've only replicated this on my own system. I'd test in an isolated environment, but I don't have ready access to Docker at the moment. I'll test again after restoring Docker.
The text was updated successfully, but these errors were encountered: