Skip to content

Commit

Permalink
fix(luarocks-upload): make sure correct archive is uploaded (#444)
Browse files Browse the repository at this point in the history
the upload script's `sed` call replaces `'scm'` in the following
section:
```lua
if _MODREV == 'scm' then
   source = {
      url = 'git:https://github.com/nvim-lua/plenary.nvim',
   }
end
```
This PR makes sure it only fixes the declaration at the top of the
file.
  • Loading branch information
mrcjkb committed Jan 6, 2023
1 parent 95fb27d commit 9d81624
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/luarocks-upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ TMP_DIR=$(mktemp -d)
MODREV=$(git describe --tags --always --first-parent | tr -d "v")
DEST_ROCKSPEC="$TMP_DIR/plenary.nvim-$MODREV-1.rockspec"
cp "plenary.nvim-scm-1.rockspec" "$DEST_ROCKSPEC"
sed -i "s/'scm'/'$MODREV'/g" "$DEST_ROCKSPEC"
sed -i "s/= 'scm',/= '$MODREV',/g" "$DEST_ROCKSPEC"
luarocks upload "$DEST_ROCKSPEC" --api-key="$LUAROCKS_API_KEY"

0 comments on commit 9d81624

Please sign in to comment.