Skip to content

Commit

Permalink
added explanation for the two stages
Browse files Browse the repository at this point in the history
  • Loading branch information
sirtoobii committed Jun 17, 2021
1 parent 93ffad4 commit 1bba130
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/Devel/Deanonymize.pm
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,9 @@ sub modify_files{
};
}

# We call modify_files twice since various tests revealed (insert root cause) that sometimes our files in @INC is ready at
# INIT stage (e.g in Callbackery applications) while they are sometimes ready at UNITCHECK stage (for example the tests
# in this repo)...
# Since we only modify non references in @INC a "double-modification" is not possible.

# We call modify_files twice since depending on how a module is loaded (use or required) it is present in @INC at different stages
# A "double-modification" is not possible because we only edit non references
INIT {
modify_files();
}
Expand Down

0 comments on commit 1bba130

Please sign in to comment.