aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-06-22 05:46:15 -0700
committerFuwn <[email protected]>2025-06-22 05:46:15 -0700
commit8720549ffd8f69832f5c0d7e6686bf115437f242 (patch)
treecc89007d4cf3635134d66afb6c0d5b8fdc3c9cb8
parentd273a2d77d59423220f040b21b27866597abfd7b (diff)
downloadyae-8720549ffd8f69832f5c0d7e6686bf115437f242.tar.xz
yae-8720549ffd8f69832f5c0d7e6686bf115437f242.zip
fix(source): Remove redundant rehash condition
-rw-r--r--flake.nix2
-rw-r--r--internal/yae/source.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix
index 7436072..3f5f5b3 100644
--- a/flake.nix
+++ b/flake.nix
@@ -59,7 +59,7 @@
inherit meta;
pname = name;
- version = "2025.05.25";
+ version = "2025.06.22";
src = pkgs.lib.cleanSource ./.;
vendorHash = "sha256-XQEB2vgiztbtLnc7BR4WTouPI+2NDQXXFUNidqmvbac=";
buildInputs = if isDarwin then [ ] else [ pkgs.musl ];
diff --git a/internal/yae/source.go b/internal/yae/source.go
index d18fcce..6b29732 100644
--- a/internal/yae/source.go
+++ b/internal/yae/source.go
@@ -85,7 +85,7 @@ func (source *Source) Update(sources *Environment, name string, force bool, forc
return updated, err
}
- if sha256 != source.SHA256 || sriHash != source.Hash || force || source.Force {
+ if sha256 != source.SHA256 || sriHash != source.Hash || force {
log.Infof("rehashed %s: %s -> %s", name, source.SHA256, sha256)
source.SHA256 = sha256