ITADN

dump output straight to stdout

#10Openteto 创建于 2023-07-29
T
tetocommented
I've been trying to speed up the nextcloud updater script in nixpkgs https://github.com/NixOS/nixpkgs/pull/244057#issuecomment-1638949136 but I am limited by the opiniated choices made in nc4nix. Could nc4nix output to stdout its content ? the caller could then choose where to output the generated content via shell redirection ? aka `nc4nix > nc27.nix` (and print errors to stderr). This may be annoying if nc4nix is called for different versions of nextcloud but as mentioned here https://github.com/helsinki-systems/nc4nix/issues/8 maybe it would be more flexible to accept only one version, e.g. `nc4nix 27 > nc27.nix` and have the callee call several nc4nix in parallel. Is there any advantage of the current infrastructure with nc4nix ? does it gain anything from having several versions in NEXTCLOUD_VERSIONS ?
1 条评论