-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.../vim-plugins/update.py
sometimes changes hash and nothing else
#157609
Comments
Perhaps this should be closed in favor of #151350 (which I just found) or vice-versa. |
does it produce the same hash if you launch it several times ? try removing the cache in ~/.cache/vim-plugin-cache.json |
Probably this as the script is running on darwin:
Nix does hack around so it can be cached it but that doesn't help here as the script is regenerated the hash from the upstream repo. Current hash on linux:
Current hash on darwin:
Updated hash on darwin:
|
@teto, running it several times in a row always produces the diff above (i.e., the hash doesn't bounce back and forth between the two). ❯ env GITHUB_API_TOKEN=[token] ./pkgs/misc/vim-plugins/update.py --no-commit
977 plugins were checked
updated /Users/malo/Code/nixpkgs/pkgs/misc/vim-plugins/generated.nix
❯ git diff | cat
diff --git a/pkgs/misc/vim-plugins/generated.nix b/pkgs/misc/vim-plugins/generated.nix
index 09fe8819a5d..de95c8d969a 100644
--- a/pkgs/misc/vim-plugins/generated.nix
+++ b/pkgs/misc/vim-plugins/generated.nix
@@ -7680,7 +7680,7 @@ final: prev:
owner = "flazz";
repo = "vim-colorschemes";
rev = "fd8f122cef604330c96a6a6e434682dbdfb878c9";
- sha256 = "1cg8q7w0vgl73aw1b9zz0zh5vw5d2pm8pm54fhfzva4azg56f416";
+ sha256 = "0kpsf6j20fgblc8vhqn7ymr52v2d1h52vc7rbxmxfwdm80nvv3g5";
};
meta.homepage = "https://github.com/flazz/vim-colorschemes/";
};
❯ env GITHUB_API_TOKEN=[token] ./pkgs/misc/vim-plugins/update.py --no-commit
warning: Git tree '/Users/malo/.config/nixpkgs' is dirty
977 plugins were checked
updated /Users/malo/Code/nixpkgs/pkgs/misc/vim-plugins/generated.nix
❯ git diff | cat
diff --git a/pkgs/misc/vim-plugins/generated.nix b/pkgs/misc/vim-plugins/generated.nix
index 09fe8819a5d..de95c8d969a 100644
--- a/pkgs/misc/vim-plugins/generated.nix
+++ b/pkgs/misc/vim-plugins/generated.nix
@@ -7680,7 +7680,7 @@ final: prev:
owner = "flazz";
repo = "vim-colorschemes";
rev = "fd8f122cef604330c96a6a6e434682dbdfb878c9";
- sha256 = "1cg8q7w0vgl73aw1b9zz0zh5vw5d2pm8pm54fhfzva4azg56f416";
+ sha256 = "0kpsf6j20fgblc8vhqn7ymr52v2d1h52vc7rbxmxfwdm80nvv3g5";
};
meta.homepage = "https://github.com/flazz/vim-colorschemes/";
}; Removing ❯ rm ~/.cache/vim-plugin-cache.json
❯ git rhard
HEAD is now at 5f586a1db04 vimPlugins.galaxyline-nvim: Switch to actively developed fork
❯ env GITHUB_API_TOKEN=[token] ./pkgs/misc/vim-plugins/update.py --no-commit
[...]
977 plugins were checked
updated /Users/malo/Code/nixpkgs/pkgs/misc/vim-plugins/generated.nix
❯ git diff | cat
diff --git a/pkgs/misc/vim-plugins/generated.nix b/pkgs/misc/vim-plugins/generated.nix
index 09fe8819a5d..de95c8d969a 100644
--- a/pkgs/misc/vim-plugins/generated.nix
+++ b/pkgs/misc/vim-plugins/generated.nix
@@ -7680,7 +7680,7 @@ final: prev:
owner = "flazz";
repo = "vim-colorschemes";
rev = "fd8f122cef604330c96a6a6e434682dbdfb878c9";
- sha256 = "1cg8q7w0vgl73aw1b9zz0zh5vw5d2pm8pm54fhfzva4azg56f416";
+ sha256 = "0kpsf6j20fgblc8vhqn7ymr52v2d1h52vc7rbxmxfwdm80nvv3g5";
};
meta.homepage = "https://github.com/flazz/vim-colorschemes/";
}; |
@zowoq, that seems to be it! There's an issue on the upstream repo (flazz/vim-colorschemes#186) as well as a PR to fix the issue (flazz/vim-colorschemes#181). Unfortunately the owner of the repo hasn't been active for over a year, so waiting for the PR to land probably isn't a viable solution :( |
can we close ? |
Yup! |
Describe the bug
Today when I ran
update.py
as part of #157581 and #157604, thesha256
hash forvim-colorschemes
was changed, but there was no update to therev
andversion
(which makes sense since the currentrev
ingenerated.nix
is up to date).Steps To Reproduce
Steps to reproduce the behavior:
nixpkgs
repo runGITHUB_API_TOKEN=[token] ./pkgs/misc/vim-plugins/update.py --no-commit
git diff
and observe that thesha256
hash forvim-colorschemes
was changed.Expected behavior
The hash should not change if the source has not changed.
Notify maintainers
@jonringer @softinio @teto @Flakebi
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.The text was updated successfully, but these errors were encountered: