michaelb / sniprun

A neovim plugin to run lines/blocs of code (independently of the rest of the file), supporting multiples languages
MIT License
1.48k stars 48 forks source link

Releases contain un-updated `Cargo.lock` file #255

Closed AngerM closed 1 year ago

AngerM commented 1 year ago

Describe the bug The updated releases contain an un-updated Cargo.lock file. This means when you do the sh install.sh or cargo build -r the Cargo.lock file is modified, which prevents future git pull's from succeeding with an error like:

Your local changes to the following files would be overwritten by checkout:
Cargo.lock

To Reproduce Steps to reproduce the behavior:

  1. Install sniprun using your favorite package manager (ex: Lazy.nvim)
  2. Wait for the next update to be released
  3. Package manager will fail to update since git pull fails

Expected behavior The Cargo.lock file should be up to date, so cargo build -r does not modify it

Screenshots If applicable, add screenshots to help explain your problem.

Environment:

Additional context The sniprun folder after installing the latest 1.3.7 update and doing the install:

$ git diff
diff --git a/Cargo.lock b/Cargo.lock
index 3503afe..c5ba1de 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -812,7 +812,7 @@ checksum = "942b4a808e05215192e39f4ab80813e599068285906cc91aa64f923db842bd5a"

 [[package]]
 name = "sniprun"
-version = "1.3.7-beta"
+version = "1.3.7"
 dependencies = [
  "close_fds",
  "dirs",
AngerM commented 1 year ago

Accidentally got double submitted

AngerM commented 1 year ago

See #254