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

Make it easier to add additional mount options #1

Merged
merged 1 commit into from
Sep 4, 2024

Conversation

r-vdp
Copy link
Contributor

@r-vdp r-vdp commented Sep 4, 2024

When using the default attribute of mkOption, the default value is assigned with a very low priority and is overwritten by any other assignment to the same option.
For the mount options, this will rarely be the desired behaviour, and users will need to remember to add the default mount options themselves when setting any additional mount options.

In this case, I think it's better to assign the default value with the normal priority so that any additional assignments are simply added.
If a user really wants to overwrite the default options, they can use mkForce.

When using the `default` attribute of `mkOption`, the default value is
assigned with a very low priority and is overwritten by any other
assignment to the same option.
For the mount options, this will rarely be the desired behaviour, and
users will need to remember to add the default mount options themselves
when setting any additional mount options.

In this case, I think it's better to assign the default value with the
normal priority so that any additional assignments are simply added.
If a user really wants to overwrite the default options, they can use
`mkForce`.
Copy link
Owner

@WilliButz WilliButz left a comment

Choose a reason for hiding this comment

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

Thank you!

@WilliButz WilliButz merged commit 9f6f0e0 into WilliButz:main Sep 4, 2024
1 check passed
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.

2 participants