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

latexindent: add extraConfig and disableExtraFiles options #514

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

trueNAHO
Copy link
Contributor

@trueNAHO trueNAHO commented Oct 12, 2024

commit 7dca34cf42b2edc9ee34f1228d7cd7fbf9d88f98
[...]

    latexindent: add hooks.latexindent.settings.extraConfig option

    Replace the hooks.latexindent.settings.flags option with
    hooks.latexindent.settings.extraConfig to support arbitrary upstream
    flags and allow users to override default values.

    [...]

commit 0593b68e5e627e4e761d39c11bca4f7db6bdd4bf
[...]

    latexindent: add hooks.latexindent.settings.disableExtraFiles option

    Add the hooks.latexindent.settings.disableExtraFiles option to prevent
    the creation of backup and log files.

    Upstream refuses adding an option to disable backup and log file
    creation to protect non-version-controlled users from data loss, despite
    it being considered unnecessary for those using version control. [1] [2]
    [3] Considering that Git is the standard in Nix and required for flakes,
    providing this option is reasonable.

    [1]: https://github.com/cmhughes/latexindent.pl/issues/145
    [2]: https://github.com/cmhughes/latexindent.pl/issues/333
    [3]: https://github.com/cmhughes/latexindent.pl/pull/354

    [...]

commit 31e108faff7bdb5956092b891839d25a2e969424
[...]

    latexindent: enable settings.disableExtraFiles option by default

    Enable the hooks.latexindent.settings.disableExtraFiles option by
    default, aligning with the community consensus that this should be the
    standard when using version control.

    [...]

This patchset resolves the issue mentioned in #512 (comment) by leveraging the patchset #513 ("latex: reduce installation size and build time").

@trueNAHO trueNAHO marked this pull request as draft October 12, 2024 15:54
Replace the hooks.latexindent.settings.flags option with
hooks.latexindent.settings.extraConfig to support arbitrary upstream
flags and allow users to override default values.

Link: cachix#514
@trueNAHO trueNAHO force-pushed the latexindent-add-extra-config-and-disable-extra-files-options branch from 0514a3b to 62b9961 Compare October 12, 2024 16:08
trueNAHO added a commit to trueNAHO/git-hooks.nix that referenced this pull request Oct 12, 2024
Add the hooks.latexindent.settings.disableExtraFiles option to prevent
the creation of backup and log files.

Upstream refuses adding an option to disable backup and log file
creation to protect non-version-controlled users from data loss, despite
it being considered unnecessary for those using version control. [1] [2]
[3] Considering that Git is the standard in Nix and required for flakes,
providing this option is reasonable.

[1]: cmhughes/latexindent.pl#145
[2]: cmhughes/latexindent.pl#333
[3]: cmhughes/latexindent.pl#354

Link: cachix#514
trueNAHO added a commit to trueNAHO/git-hooks.nix that referenced this pull request Oct 12, 2024
Enable the hooks.latexindent.settings.disableExtraFiles option by
default, aligning with the community consensus that this should be the
standard when using version control.

Link: cachix#514
Add the hooks.latexindent.settings.disableExtraFiles option to prevent
the creation of backup and log files.

Upstream refuses adding an option to disable backup and log file
creation to protect non-version-controlled users from data loss, despite
it being considered unnecessary for those using version control. [1] [2]
[3] Considering that Git is the standard in Nix and required for flakes,
providing this option is reasonable.

[1]: cmhughes/latexindent.pl#145
[2]: cmhughes/latexindent.pl#333
[3]: cmhughes/latexindent.pl#354

Link: cachix#514
Enable the hooks.latexindent.settings.disableExtraFiles option by
default, aligning with the community consensus that this should be the
standard when using version control.

Link: cachix#514
@trueNAHO trueNAHO force-pushed the latexindent-add-extra-config-and-disable-extra-files-options branch from 62b9961 to 31e108f Compare October 12, 2024 16:40
@trueNAHO trueNAHO marked this pull request as ready for review October 12, 2024 16:44
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.

1 participant