-
Notifications
You must be signed in to change notification settings - Fork 17
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
Too much quotation in generated configurations in .env.public #116
Comments
I ran into this too. Makefiles expect variables not to be quoted. The default
|
I will have a look at this. |
Here is my full error message: Writing lock file Installing the current project: sepio_linkml (0.0.0.post2.dev0+842b967) |
This looks like the quotes are somehow being dropped on the ends of variables when we run sheets2linkml. I got this when I ran |
This is the offending line in the Makefile:
I don't know why it is eating the As expected, since we have three opening |
Removing quotes from the variable definition for And here is a bit of a trace from that line to how it causes the issue in the Makefile:
I'm not very familiar with Makefile so I'm not sure how to solve this in the current infrastructure but I'd be happy to help. |
Thanks for feedback - unfortunately I am intermittent contributor (and my work laptop cannot access public GitHub, so I need to grab my neglected personal laptop). This issue was first raised in #106 so needs solution. Would you be wiling to raise a PR to remove all quotes from This is acceptable regression as that file is my idea and needs incremental fixing. |
@noelmcloughlin Sure, I'm happy to help out on this. I'll try just implementing your suggestion and see what we break. |
Makefile quoting is a mess. I think the normal suggestion is to not use quotes if there aren't any spaces in the variable (definitely true for the google vars, and likely true for the path) |
Looking a little deeper at this, this is actually a make file, not an environment file or a Bash script file. I think we should be more clear in how we define this. At minimum, I will include a statement in the file that this is a make-file. I would prefer to change the name from .env.public to .vars.public.mk but I'm concerned this might cause unnecessary breakage for users using cruft to update their cookie-cutters. For now, I'll remove the excess quotation and make a notation within the file that states it is a make-file not an env file or a bash script (it kinda looks like it could be either). Please share your thoughts on changing the file name. |
Hi !! Feel free to rename file - I think nobody else cares at this point - they just want bug fixed I guess so that is why I suggested removing quotes as first step. |
I'm bit puzzled why I never saw errors when testing, usually I am thorough testing. Is there some extra tooling people use with makefiles? Maybe there is a linter for makefiles, I might investigate that also. |
linkml-project-cookiecutter/{{cookiecutter.project_name}}/.env.public
Lines 5 to 10 in 4e062ec
The quotes don't function like normal quotes, they end up in the string
The text was updated successfully, but these errors were encountered: