dprint: skip non-release tags in updateScript, 0.52.1 -> 0.53.0 (#502638)

This commit is contained in:
Pol Dellaiera
2026-03-24 05:58:09 +00:00
committed by GitHub
+8 -4
View File
@@ -12,7 +12,7 @@
rustPlatform.buildRustPackage (finalAttrs: {
pname = "dprint";
version = "0.52.1";
version = "0.53.0";
# Prefer repository rather than crate here
# - They have Cargo.lock in the repository
@@ -21,10 +21,10 @@ rustPlatform.buildRustPackage (finalAttrs: {
owner = "dprint";
repo = "dprint";
tag = finalAttrs.version;
hash = "sha256-CV0txMWYL9s11pA59D/RCt/s8GZ9LpUqOpEhK0yOhfA=";
hash = "sha256-4LtE/r/qUiZb4bOph/XEx+U0g11fvyX/nKZh8Ikt0SQ=";
};
cargoHash = "sha256-ca5e5wWRfMz+qCMbAUlMls8u+txcHgZ0R9dzN+dm1L4=";
cargoHash = "sha256-BV+hyiuIvn811E1y0IWOTkjtEpH/l6drWHXeMIXeOWk=";
nativeBuildInputs = [ installShellFiles ];
@@ -78,7 +78,11 @@ rustPlatform.buildRustPackage (finalAttrs: {
versionCheckKeepEnvironment = [ "HOME" ];
passthru = {
updateScript = nix-update-script { };
updateScript = nix-update-script {
# Follow upstream's release policy. Git tags are not enough for this package:
# https://github.com/dprint/dprint/issues/1113
extraArgs = [ "--use-github-releases" ];
};
};
meta = {