-
-
Notifications
You must be signed in to change notification settings - Fork 618
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
"location" command clarification #564
Comments
Well, that is certainly not the behavior I'm seeing indeed... and also not what the code does: this is in the oven.project.bake() self.location = self.location or wks.location or self.basedir So it is true that if the project.location is set it override it, and if the workspace.location is not set it will have some kind of default... but the documentation is incorrect on it not propagating. |
Related, the documentation also says:
Which is broken because the value propagates and self.location = self.location or self.basedir And self.basedir = os.getcwd() I went back through the history and I can't see where the described functionality would ever work. This issue was raised in #371. |
It works because Premake's implementation of luaL_loadfile() changes to the directory containing the script before running it. So when those snippets of code are executed, the current directory is in fact the one containing the script. That said, we now have the |
That's not quite what I meant, the code that has been posted above has never changed from what I could tell when I went through the history of the repo. So how does Just to clarify, do you experience this bug too? I think I've always had this bug :( |
This has been fixed by #733 |
So today I came back to the premake5 repository to see how development goes, because I just love this project & build system. I quickly noticed that the first official tutorial is up, so I thought I'd check it out. Then I thought I found a bug in it - it only had a workspace level "location" call, yet it claimed that all generated files would be put into the "Generated" folder. Quoting the wiki page for location:
So my question is: is the wiki page for location deprecated/wrong, or is it a bug? Either way, one or the other should be fixed. I suspect it's the wiki page, but I don't want to go ahead and modify it without knowing for sure that this is the intended behavior.
The text was updated successfully, but these errors were encountered: