-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
custom_target: install:true without install_dir crashes #9522
Milestone
Comments
This happens because some code, but not all code, is migrated to use typed_kwargs. And the CustomTarget implementation just emits the relevant error if install_dir is not in the kwargs, but it might be passed and not truthy. Seems like a simple solution. |
eli-schwartz
added a commit
to eli-schwartz/meson
that referenced
this issue
Nov 3, 2021
It's supposed to emit an error message, but instead it did a traceback. It used to be, if no install_dir was specified then it was simply not in kwargs, but due to typed_kwargs it will now be there, but not have viable contents, so the dict membership check got skipped. Fixes mesonbuild#9522
dcbaker
pushed a commit
that referenced
this issue
Nov 3, 2021
It's supposed to emit an error message, but instead it did a traceback. It used to be, if no install_dir was specified then it was simply not in kwargs, but due to typed_kwargs it will now be there, but not have viable contents, so the dict membership check got skipped. Fixes #9522
nirbheek
pushed a commit
that referenced
this issue
Nov 25, 2021
It's supposed to emit an error message, but instead it did a traceback. It used to be, if no install_dir was specified then it was simply not in kwargs, but due to typed_kwargs it will now be there, but not have viable contents, so the dict membership check got skipped. Fixes #9522
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When defining a
custom_target
withinstall:true
,meson build
will crash. Ifinstall_dir
is provided, build works as expected.Traceback:
To Reproduce
Expected behavior
Either an error of some sort ("install:true requires install_dir to be set") or default fallback (
install_dir: '.'
??)system parameters
The text was updated successfully, but these errors were encountered: