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

types btrfs: fix format without swap or subvolumes #597

Merged
merged 2 commits into from
Apr 8, 2024
Merged

types btrfs: fix format without swap or subvolumes #597

merged 2 commits into from
Apr 8, 2024

Conversation

kira-bruneau
Copy link
Contributor

@kira-bruneau kira-bruneau commented Apr 8, 2024

Hi! Recently when trying to format a btrfs drive I ran into syntax error near unexpected token `fi'.

It looks like #568 introduced a change that generates an empty if statement if neither the swap config or subvolumes are set and this just adds a guard to avoid adding that empty if block if neither are set.

lib/types/btrfs.nix Outdated Show resolved Hide resolved
@Lassulus
Copy link
Collaborator

Lassulus commented Apr 8, 2024

it would also be nice to have an example config and a test which triggers that error. so we can detect regressions in the future :)

@Lassulus
Copy link
Collaborator

Lassulus commented Apr 8, 2024

@mergify queue

Copy link
Contributor

mergify bot commented Apr 8, 2024

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 79eab0e

@mergify mergify bot merged commit 79eab0e into nix-community:master Apr 8, 2024
41 checks 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