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

broot: fix build #3273

Merged
merged 1 commit into from
Sep 27, 2022
Merged

broot: fix build #3273

merged 1 commit into from
Sep 27, 2022

Conversation

Chan-Siu-Man
Copy link
Contributor

@Chan-Siu-Man Chan-Siu-Man commented Sep 27, 2022

Description

Fix conf.hjson path in broot.nix, unblocking builds.

For broot version >= 1.14.0, the default config file should be at
resources/default-conf/conf.hjson.

This PR fixes this error:

FileNotFoundError: [Errno 2] No such file or directory: '/nix/store/dikbik0phcq4lf7al6s1g6imcx2grfqs-broot-1.15.0.tar.gz/resources/default-conf.hjson'

Checklist

  • Change is backwards compatible.

  • Code formatted with ./format.

  • Code tested through nix-shell --pure tests -A run.broot.
    btop test fails on master as well.

  • Commit messages are formatted like

    {component}: {description}
    
    {long description}
    

    See CONTRIBUTING for more information and recent commit messages for examples.

@rycee
Copy link
Member

rycee commented Sep 27, 2022

Thanks! Just need to fix the test error, squash the commits. and fix the "Commit messages are formatted like" checklist item.

@dermetfan dermetfan requested a review from rycee as a code owner September 27, 2022 08:22
modules/programs/broot.nix Outdated Show resolved Hide resolved
@Chan-Siu-Man Chan-Siu-Man force-pushed the fix-broot branch 2 times, most recently from c0d9329 to df53511 Compare September 27, 2022 08:50
@Chan-Siu-Man Chan-Siu-Man requested review from rycee and removed request for dermetfan September 27, 2022 08:54
At commit [5666e6b9](Canop/broot@5666e6b),
broot refactored the content of the file `/resources/default-conf.hjson`
into multiple files under the directory `/resources/default-conf`, using
[`imports`](https://github.com/Canop/broot/blob/5666e6b9fb827c07c6c21fbe0fc60f538e1aaf60/resources/default-conf/conf.hjson#L152-L165)
to refer to other configurations.

This refactoring is effective since version 1.14.0 of broot.

After this refactoring, in `xdg.configFile.broot` (which defaults to
`~/.config/broot`):
- we need to copy all potentially referenced files (all files under
  `resources/default-conf`),
- except we need to leave out `conf.hjson` which conflicts with the
  `conf.toml` generated by home-manager (because broot [accepts both conf.toml and conf.hjson](https://dystroy.org/broot/conf_file/))

To implement this, we use `symlinkJoin` to create the content of
`xdg.configFile.broot` by merging multiple sources.
Copy link
Collaborator

@dermetfan dermetfan 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 finding and fixing my mistake so quickly! I squashed your commits manually to tick the checkboxes.

@dermetfan dermetfan merged commit 1f5ef2b into nix-community:master Sep 27, 2022
@teto
Copy link
Collaborator

teto commented Sep 30, 2022

there seems to be a broot related issue, not sure if tha'ts related #3272

austinharris pushed a commit to austinharris/home-manager that referenced this pull request Dec 23, 2022
At commit [5666e6b9](Canop/broot@5666e6b),
broot refactored the content of the file `/resources/default-conf.hjson`
into multiple files under the directory `/resources/default-conf`, using
[`imports`](https://github.com/Canop/broot/blob/5666e6b9fb827c07c6c21fbe0fc60f538e1aaf60/resources/default-conf/conf.hjson#L152-L165)
to refer to other configurations.

This refactoring is effective since version 1.14.0 of broot.

After this refactoring, in `xdg.configFile.broot` (which defaults to
`~/.config/broot`):
- we need to copy all potentially referenced files (all files under
  `resources/default-conf`),
- except we need to leave out `conf.hjson` which conflicts with the
  `conf.toml` generated by home-manager (because broot [accepts both conf.toml and conf.hjson](https://dystroy.org/broot/conf_file/))

To implement this, we use `symlinkJoin` to create the content of
`xdg.configFile.broot` by merging multiple sources.
spacekookie pushed a commit to spacekookie/home-manager that referenced this pull request Feb 10, 2023
At commit [5666e6b9](Canop/broot@5666e6b),
broot refactored the content of the file `/resources/default-conf.hjson`
into multiple files under the directory `/resources/default-conf`, using
[`imports`](https://github.com/Canop/broot/blob/5666e6b9fb827c07c6c21fbe0fc60f538e1aaf60/resources/default-conf/conf.hjson#L152-L165)
to refer to other configurations.

This refactoring is effective since version 1.14.0 of broot.

After this refactoring, in `xdg.configFile.broot` (which defaults to
`~/.config/broot`):
- we need to copy all potentially referenced files (all files under
  `resources/default-conf`),
- except we need to leave out `conf.hjson` which conflicts with the
  `conf.toml` generated by home-manager (because broot [accepts both conf.toml and conf.hjson](https://dystroy.org/broot/conf_file/))

To implement this, we use `symlinkJoin` to create the content of
`xdg.configFile.broot` by merging multiple sources.
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.

4 participants