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

Fix include paths being passed to subprocess #39

Merged
merged 2 commits into from
Aug 29, 2020
Merged

Conversation

ptomato
Copy link
Owner

@ptomato ptomato commented Aug 29, 2020

Previously include paths in the config file were treated as spec paths.

Closes: #37

We don't have any short options, but if they are given, they should
still not be treated as files. This was masking a bug where the -I
include option for GJS was being given in the wrong place.
The include paths were being interpreted as spec paths because the -I
was in the wrong place on the command line. In order to prevent this
confusion, don't use the -I argument at all (it is weird, and is
intercepted by GJS before arg parsing) and instead pass include paths to
the subprocess using the GJS_PATH environment variable.

Closes: #37
@andyholmes
Copy link
Contributor

LGTM!

@ptomato ptomato merged commit 84b6a97 into master Aug 29, 2020
@ptomato ptomato deleted the 37-include-paths branch August 29, 2020 22:37
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

Successfully merging this pull request may close these issues.

All files in include paths are loaded as specs
2 participants