Skip to content

fix(core): pass this.config when calling internal hooks - #3126

Merged
MarshallOfSound merged 1 commit into
electron:mainfrom
albertxing:axg-fix-internal-hook-args
Jan 8, 2023
Merged

MarshallOfSound merged 1 commit into
electron:mainfrom
albertxing:axg-fix-internal-hook-args

Conversation

@albertxing

@albertxing albertxing commented Dec 31, 2022 •

Copy link
Copy Markdown
Contributor
  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project follows, as appropriate.
  • The changes are appropriately documented (if applicable).
  • The changes have sufficient test coverage (if applicable).
  • The testsuite passes successfully on my local machine (if applicable).

Summarize your changes:
Some internal hooks are decorated with the __hookName field to indicate that the first parameter should be the task. However, when invoking these callbacks the config param was left out. This resulted in a signature mismatch, which caused issues like #3114 where the arch param was not being passed along correctly to rebuild.

@erickzhao erickzhao left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems legit

@erickzhao erickzhao changed the title fix: pass this.config when calling internal hooks fix(core): pass this.config when calling internal hooks Jan 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants