Repository navigation
Do not reuse tempfiles - #3553
Closed
simontegelid wants to merge 1 commit into
Closed
simontegelid wants to merge 1 commit into
simontegelid wants to merge 1 commit into
Conversation
Actions lists with more than one action using ${TEMPFILE("TEMP FILE CONTENT")}
should not use the same tempfile for different "TEMP FILE CONTENT".
Therefore we cannot store the cmd_list in niether the target nor the
source attributes since those are common for all actions.
Reusing the same tempfile causes the same command to be invoked
for all actions in the list. However, not resusing tempfiles will
create unneeded tempfiles on strfunction invocation. This is better
than producing incorrect results, but leaves the tempfile in a bad
state.
3 tasks done
Contributor
|
@simontegelid - I'm replacing this pull request with an alternate fix #3801 Please take a look at that PR and maybe try on your build and let me know if you see any issues with the fix. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Actions lists with more than one action using
${TEMPFILE("TEMP FILE CONTENT")}should not use the same tempfile for different "TEMP FILE CONTENT". Therefore, we cannot store the cmd_list in neither the target nor the source attributes, since those are common for all actions.Reusing the same tempfile causes the same command to be invoked for all actions in the list. However, not resusing tempfiles will create unneeded tempfiles on
strfunctioninvocation. This is better than producing incorrect results, but leaves the tempfile in a bad state.Accidentally closed PR #3140, but there is some relevant discussion in there.
Contributor Checklist:
master/src/CHANGES.txtdirectory (and read theREADME.txtin that directory)