-
Notifications
You must be signed in to change notification settings - Fork 984
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
[bug] package_folder not always defined in self.generate #13402
Comments
Hi @jsallay Thanks for your report.
I hope this clarifies the issue. |
Thanks for clarifying. I had asked on the slack if this was a bug in conan or in the If I'm not mistaken, there are other places where conan enforces that certain values are used in certain places. If it is possible, it would be nice to raise an error if I think it is really confusing behavior that it works in some cases but not others. |
Environment details
Steps to reproduce
I was attempting to build the
pulseaudio
recipe from conan-center-index. Thegenerate
method referencesself.package_folder
and I discovered that this is not always defined. @prince-chrismc Looked at the issue with me and we discovered the following:Works:
conan install --requires pulseaudio/14.2 --build=missing
Doesn't: (I did a clone of conan-center-index and went to the pulseaudio folder)
conan install all --version 14.2
I am able to reproduce it with a simpler recipe:
Note that for
t1
,conan create .
succeeds whileconan install .
fails.Logs
For pulseaudio, I get the following error on install:
ERROR: conanfile.py (pulseaudio/14.2): Error in generate() method, line 105
f"--with-udev-rules-dir={os.path.join(self.package_folder, 'bin', 'udev', 'rules.d')}",
TypeError: expected str, bytes or os.PathLike object, not NoneType
I verified that
self.package_folder
isNone
on install, but not on create.The text was updated successfully, but these errors were encountered: