Skip to content
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

[options] Mergo doesn't play well with reference types #2452

Merged
merged 1 commit into from
Mar 7, 2023

Conversation

stffabi
Copy link
Collaborator

@stffabi stffabi commented Mar 6, 2023

Remove mergo and just use a simple hardcoded defaults approach.

Fixes #2450

Remove mergo and just use a simple hardcoded defaults approach.
@stffabi stffabi requested a review from leaanthony March 6, 2023 20:31
@vercel
Copy link

vercel bot commented Mar 6, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
wails-u718 ❌ Failed (Inspect) Mar 6, 2023 at 8:31PM (UTC)

@vercel
Copy link

vercel bot commented Mar 6, 2023

Deployment failed with the following error:

Was unable to schedule a deployment.

Copy link
Member

@leaanthony leaanthony left a comment

Choose a reason for hiding this comment

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

Thanks for jumping on this so quickly. Just a non blocking comment 👍👍

@@ -148,7 +160,10 @@ func processMenus(appoptions *App) {
switch runtime.GOOS {
case "darwin":
if appoptions.Menu == nil {
appoptions.Menu = defaultMacMenu
appoptions.Menu = menu.NewMenuFromItems(
Copy link
Member

Choose a reason for hiding this comment

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

Was this change intended? Just wondering how it affected the behaviour. Perhaps we should remove the default variables if they are causing an issue?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah it was intended but not needed for the fix. It was just that after removing the default handling there was a default.go file with just the content of the defaultMacMenu. So I thought we could remove that and get rid of that almost empty default.go file.

@stffabi stffabi merged commit d7a8406 into master Mar 7, 2023
@stffabi stffabi deleted the bugfix/merging-defaults-with-logger branch March 7, 2023 06:04
@stffabi
Copy link
Collaborator Author

stffabi commented Mar 7, 2023

Thanks for approving 🙏

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.

Panic when passing in custom logger.
2 participants