mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 04:50:21 +00:00
yq-go: 4.53.3 -> 4.54.1 (#569091)
This commit is contained in:
@@ -11,16 +11,16 @@
|
||||
|
||||
buildGoModule (finalAttrs: {
|
||||
pname = "yq-go";
|
||||
version = "4.53.3";
|
||||
version = "4.54.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mikefarah";
|
||||
repo = "yq";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-e4/Tu40Fe2DKzP7+ZLqkWty+VJ5eWGyKAwH0U07gQeg=";
|
||||
hash = "sha256-XuFeCF8oyURkcBuQsv2ePjRST/nZtHh+PnLFwD/GMCM=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-B+FGknoNYfWXT8nx0teSCdT9i18VJMv8L1dv1w8gcF8=";
|
||||
vendorHash = "sha256-CaglyW5YwmukObKYXMTsTiLY31gs2bgLwyTfxJUtTdY=";
|
||||
|
||||
nativeBuildInputs = lib.optionals (stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
|
||||
installShellFiles
|
||||
@@ -43,7 +43,7 @@ buildGoModule (finalAttrs: {
|
||||
passthru = {
|
||||
tests = {
|
||||
simple = runCommand "yq-go-test" { } ''
|
||||
echo "test: 1" | ${finalAttrs.finalPackage}/bin/yq eval -j > $out
|
||||
echo "test: 1" | ${finalAttrs.finalPackage}/bin/yq eval -o=json > $out
|
||||
[ "$(cat $out | tr -d $'\n ')" = '{"test":1}' ]
|
||||
'';
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user