-
Notifications
You must be signed in to change notification settings - Fork 138
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
remove fetch-includes early return #1365
Conversation
i don't really see it as an bug, seemed like gcl --fetch-includes # to force update the cache
gcl # re-run gcl using the updated cache but i do like the behavior you're proposing as it sounds cleaner and more intuitive... just like |
Oh I see. If that's the case, that's fine, it should be better documented then so users can be aware that that is the case.
Yes, the other advantage is that if there was a certain configuration that was required (such as setting certain variables and options) then they need to be specified twice, in addition to having to re-process everything again. |
It definently was on purpose. "normally" programmers specify hardpinned include dependencies. |
Ah, thanks I see. So what's the outcome of this?
|
I'm ok with it.. 👍 |
I previously came across an issue where I was getting incorrect output due to cached files.
On realising this, I set the
--fetch-includes
flags, as it was documented that it would always fetch includes even when cached.However when this flag was enabled, the program returned no output, and short-circuited all other flags.
This is because of the changes seen below, even though this flag value is used elsewhere to determine whether includes should be refetched.
While this is an api breaking change, if I understand the code correctly, it as an acceptable bug fix.
This is because the flag currently doesn't produce any output and only calls
Parser.create
.However this PR would set it so that the flag does produce the correct output (which if I understand correctly won't make a difference as the user isn't checking for output) and all other code paths call
Parser.create
anyway.If this change is not acceptable, the creation of a new flag would be required, along with changes to the rest of the code that uses
fetchIncludes
so that it performs as expected.