Created
August 12, 2020 09:23
-
-
Save jonaskgandersson/8cf377f8f86c51ce7422b46dcc97b295 to your computer and use it in GitHub Desktop.
Revisions
-
jonaskgandersson created this gist
Aug 12, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ Generate lockdown file with openssl and vim. Clean download files, and fetch recipe again. Open downloads/npm/packageName. Run openssl sha1 * > lockdown_0.0.0.json Search replace lockdown.json from openssl sha1 * in vim :%s/SHA1(/ "/g :%s/-\([0-9]\+\.[0-9]\+\.[0-9]\+\)\(.tgz)= \)/": {\r "\1": "/g :%s/\(\w\)\n/\1"\r },\r/g Add start and end {}, fix last , Check if multiple package versions exists, combine under same key