Skip to content

Instantly share code, notes, and snippets.

@isaacs
Last active June 16, 2021 19:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isaacs/635b8b128d547a3c50abbe7a0e0238ba to your computer and use it in GitHub Desktop.
Save isaacs/635b8b128d547a3c50abbe7a0e0238ba to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
rm -rf node_modules .git package-lock.json package.json .gitignore
git init
echo {} > package.json
echo node_modules > .gitignore
npm i optoolco/tonic#v13.3.0
git add .
git commit -m 'wip'
# then
npm i optoolco/tonic#v13.3.1
git diff
npm -v
@isaacs
Copy link
Author

isaacs commented Jun 16, 2021

output

Initialized empty Git repository in /Users/isaacs/dev/npm/arborist/fixtures/git-tag-wrong-version/.git/

added 1 package, and audited 2 packages in 12s

found 0 vulnerabilities
[main (root-commit) 3d4e664] wip
 4 files changed, 42 insertions(+)
 create mode 100644 .gitignore
 create mode 100644 package-lock.json
 create mode 100644 package.json
 create mode 100644 test.sh

changed 1 package, and audited 2 packages in 11s

found 0 vulnerabilities
diff --git a/package-lock.json b/package-lock.json
index af18baa..213304f 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -5,19 +5,19 @@
   "packages": {
     "": {
       "dependencies": {
-        "@optoolco/tonic": "github:optoolco/tonic#v13.3.0"
+        "@optoolco/tonic": "github:optoolco/tonic#v13.3.1"
       }
     },
     "node_modules/@optoolco/tonic": {
-      "version": "13.3.0",
-      "resolved": "git+ssh://git@github.com/optoolco/tonic.git#b9473d358023988b3ad447d3041a2e50d6ec247e",
+      "version": "13.3.1",
+      "resolved": "git+ssh://git@github.com/optoolco/tonic.git#a84f9df35fbad5193aa899a190d0c4dfb3b766e0",
       "license": "MIT"
     }
   },
   "dependencies": {
     "@optoolco/tonic": {
-      "version": "git+ssh://git@github.com/optoolco/tonic.git#b9473d358023988b3ad447d3041a2e50d6ec247e",
-      "from": "@optoolco/tonic@optoolco/tonic#v13.3.0"
+      "version": "git+ssh://git@github.com/optoolco/tonic.git#a84f9df35fbad5193aa899a190d0c4dfb3b766e0",
+      "from": "@optoolco/tonic@optoolco/tonic#v13.3.1"
     }
   }
 }
diff --git a/package.json b/package.json
index e4b4d29..8010065 100644
--- a/package.json
+++ b/package.json
@@ -1,5 +1,5 @@
 {
   "dependencies": {
-    "@optoolco/tonic": "github:optoolco/tonic#v13.3.0"
+    "@optoolco/tonic": "github:optoolco/tonic#v13.3.1"
   }
 }
7.16.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment