Skip to content

Commit 9d81624

Browse files
authored
fix(luarocks-upload): make sure correct archive is uploaded (#444)
the upload script's `sed` call replaces `'scm'` in the following section: ```lua if _MODREV == 'scm' then source = { url = 'git://github.com/nvim-lua/plenary.nvim', } end ``` This PR makes sure it only fixes the declaration at the top of the file.
1 parent 95fb27d commit 9d81624

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/luarocks-upload.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ TMP_DIR=$(mktemp -d)
66
MODREV=$(git describe --tags --always --first-parent | tr -d "v")
77
DEST_ROCKSPEC="$TMP_DIR/plenary.nvim-$MODREV-1.rockspec"
88
cp "plenary.nvim-scm-1.rockspec" "$DEST_ROCKSPEC"
9-
sed -i "s/'scm'/'$MODREV'/g" "$DEST_ROCKSPEC"
9+
sed -i "s/= 'scm',/= '$MODREV',/g" "$DEST_ROCKSPEC"
1010
luarocks upload "$DEST_ROCKSPEC" --api-key="$LUAROCKS_API_KEY"

0 commit comments

Comments
 (0)