forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nixos/syncthing: Use API to merge / override configurations
If one sets either of `override{Device,folder}s` to false, the jq `*` operator doesn't merge well the devices and folders, creating duplicate IDs for folders as observed in NixOS#230146. This PR makes the script iterate via a Bash for loop the devices and folders IDs and merges the keys using upstream's `curl -X PATCH` support for single objects. Hence this commit fixes NixOS#230146.
- Loading branch information
1 parent
9f82e77
commit 5f5fa9e
Showing
1 changed file
with
65 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters